Skip to content

Commit

Permalink
fixed gem
Browse files Browse the repository at this point in the history
  • Loading branch information
KonradIT committed Feb 16, 2017
1 parent de51b42 commit e342836
Show file tree
Hide file tree
Showing 16 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ gem install goprocam.gemspec
First of all:

```ruby
require '../lib/GoPro'
require '../lib/goprocam'
require '../lib/constants'
```

Expand Down
2 changes: 1 addition & 1 deletion examples/10secvideo.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require '../lib/GoPro'
require '../lib/goprocam'
require '../lib/constants'
gpCamera = Camera.new
gpCamera.camera_mode(Mode::VideoMode, Mode::SubMode::Video::Video)
Expand Down
2 changes: 1 addition & 1 deletion examples/burst.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require '../lib/GoPro'
require '../lib/goprocam'
require '../lib/constants'

gpCamera = Camera.new
Expand Down
2 changes: 1 addition & 1 deletion examples/getstatus.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require '../lib/GoPro'
require '../lib/goprocam'
require '../lib/constants'

gpCamera = Camera.new
Expand Down
2 changes: 1 addition & 1 deletion examples/hdr.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require '../lib/GoPro'
require '../lib/goprocam'
require '../lib/constants'

gpCamera = Camera.new
Expand Down
2 changes: 1 addition & 1 deletion examples/livestreaming.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require '../lib/GoPro'
require '../lib/goprocam'
require '../lib/constants'

gpCamera = Camera.new
Expand Down
2 changes: 1 addition & 1 deletion examples/media_example.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require '../lib/GoPro'
require '../lib/goprocam'
require '../lib/constants'

gpCamera = Camera.new
Expand Down
2 changes: 1 addition & 1 deletion examples/photogrammetry.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require '../lib/GoPro'
require '../lib/goprocam'
require '../lib/constants'

###################################
Expand Down
2 changes: 1 addition & 1 deletion examples/poweronoff.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require '../lib/GoPro'
require '../lib/goprocam'
gpCamera = Camera.new
puts("powering on...")
gpCamera.power_on()
Expand Down
2 changes: 1 addition & 1 deletion examples/sample_overview.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require '../lib/GoPro'
require '../lib/goprocam'
require '../lib/constants'
gpCamera = Camera.new
gpCamera.overview()
2 changes: 1 addition & 1 deletion examples/synctime.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
require '../lib/GoPro'
require '../lib/goprocam'
gpCamera = Camera.new
gpCamera.sync_time()
2 changes: 1 addition & 1 deletion examples/timedphoto.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require '../lib/GoPro'
require '../lib/goprocam'
require '../lib/constants'
gpCamera = Camera.new
sleep 5
Expand Down
2 changes: 1 addition & 1 deletion examples/vidresvideo.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require '../lib/GoPro'
require '../lib/goprocam'
require '../lib/constants'
gpCamera = Camera.new
gpCamera.camera_mode(Mode::VideoMode, Mode::SubMode::Video::Video)
Expand Down
Binary file added goprocam-1.0.0.gem
Binary file not shown.
2 changes: 1 addition & 1 deletion goprocam.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Gem::Specification.new do |s|
s.description = "Control and view status from your GoPro HERO4/HERO5 camera via WiFi."
s.authors = ["Konrad Iturbe"]
s.email = 'mail@chernowii.com'
s.files = ["lib/GoPro.rb","lib/constants.rb"]
s.files = Dir['lib/**/*.rb']
s.homepage =
'http://rubygems.org/gems/goprocam'
s.license = 'MIT'
Expand Down
1 change: 1 addition & 0 deletions lib/GoPro.rb → lib/goprocam.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require 'open-uri'
require 'socket'
require 'json'
require_relative 'constants'
GPIP = "10.5.5.9"
GOPROCONTROL = "http://10.5.5.9/gp/gpControl/"
GOPROMEDIA = "http://10.5.5.9/gp/gpMediaList/"
Expand Down

0 comments on commit e342836

Please sign in to comment.