projector 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MjE0MWMzOTlkNzMyZDIyYWI2MWFjOWIzZjU2YTcwYmI5NWM0MzcxOQ==
5
- data.tar.gz: !binary |-
6
- MmQyNDcxZWQ2ZWM1YjYzYTM3NWY1NzU3OTMyMDYzM2ZjYjFkNWUxOQ==
2
+ SHA1:
3
+ metadata.gz: b01c748ddaf5071ff777617069d58c659ad50939
4
+ data.tar.gz: 8b0bdcc7690ece29913b18a628cc79545322db8f
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- MGI4MjQ2MTU1M2YyMDNmZTNlYjllZWM3NDg3NmM2MDdkYTNkYzIwZGFkNGUw
10
- ZDM3YWMzNDMyY2U1MjRlZDM1MGRjOWU0NDJkOGZmOTBlMGYwMjA2YzIzMWFk
11
- N2YzMjRmYjc3ZWUwNWU5MGMzMWE3YjUyOTE3YzljMWRkNjBjMDY=
12
- data.tar.gz: !binary |-
13
- NmZjYTU3MDM0ODliNWY4MmEzYTgzMTA3OTY0YmJmYTY0NDcyMjkzOTJjOGEw
14
- Yjc2MWQwNmJjODlkZGQzODBkYzEzZTRhMWU5YWE3YzMxYWM3Y2Y0ODI1NGRh
15
- NDJmMDEzNTAzMGMwYzYzNmI0YzEwNmEyNzJkNzMyOGZjNWRjMWQ=
6
+ metadata.gz: 382ccef4f65a69c0b3653b6dacbfa1a3deebfcb08625ccba6fba8891d1fa593a5e4387f43c24b4a691c0d256c99932c4f083d56dfee75c1937f058b6754e5abf
7
+ data.tar.gz: 45ae036f1e0d756770ca7f3751d888a7a661e8d62b50f4d5728d643abced1d0c2b822dc628ab1ad504fd8234f29a85d5c950bc71b4cd0143c18223dddfab7fd3
data/Gemfile CHANGED
@@ -5,6 +5,10 @@ gemspec
5
5
 
6
6
  gem 'rake', :group => [:development, :test]
7
7
 
8
+ group :development do
9
+ gem 'yard'
10
+ end
11
+
8
12
  # Testing dependencies
9
13
  group :test do
10
14
  gem 'minitest'
data/README.md CHANGED
@@ -4,15 +4,10 @@
4
4
 
5
5
  ## Installation
6
6
 
7
- The `projector` gem is hosted on Gemfury so you will need to add the Gemfury repository to your gemfile:
8
-
9
7
  ```
10
- gem 'projector', :source => 'https://gem.fury.io/projector/'
8
+ gem 'projector'
11
9
  ```
12
10
 
13
-
14
- ## Building / Testing
15
-
16
11
  ### Testing
17
12
 
18
13
  ```
data/Rakefile CHANGED
@@ -1,4 +1,6 @@
1
1
  require 'bundler'
2
+ require 'yard'
3
+
2
4
  Bundler::GemHelper.install_tasks
3
5
 
4
6
  require 'rake/testtask'
@@ -17,14 +19,14 @@ end
17
19
 
18
20
  task :default => :test
19
21
 
20
- begin
21
- require 'yard'
22
- YARD::Rake::YardocTask.new(:doc) do |task|
23
- task.files = ['Readme.markdown', 'LICENSE', 'lib/**/*.rb']
24
- task.options = [
25
- '--output-dir', 'doc',
26
- '--markup', 'markdown',
27
- ]
28
- end
29
- rescue LoadError
22
+ desc "Publish SDK docs to GitHub Pages"
23
+ task :publish_docs do
24
+ system("set -x; bundle exec yardoc --protected ./lib/**/*.rb ") or abort
25
+ system("set -x; mv -v ./doc /tmp ") or abort
26
+ system("set -x; git checkout gh-pages ") or abort
27
+ system("set -x; cp -r /tmp/doc/* . ") or abort
28
+ system("set -x; git add . ") or abort
29
+ system("set -x; git commit --all -m 'Update docs' ") or abort
30
+ system("set -x; git checkout master ") or abort
31
+ system("git push origin gh-pages")
30
32
  end
data/circle.yml CHANGED
@@ -1,3 +1,14 @@
1
1
  machine:
2
2
  ruby:
3
- version: 2.2.3
3
+ version: 2.2.3
4
+
5
+ dependencies:
6
+ pre:
7
+ - git config user.email "engineering+circleci@projector.com"
8
+ - git config user.name "Projector CircleCI"
9
+
10
+ deployment:
11
+ gh_pages:
12
+ branch: master
13
+ commands:
14
+ - bundle exec rake publish_docs
@@ -31,7 +31,8 @@ module Projector
31
31
  # Add headers
32
32
  request['Authorization'] = "Token #{self.token}"
33
33
  request['Content-Type'] = 'application/json'
34
- request['Accept'] = "application/vnd.projector+json;"
34
+ request['Accept'] = "application/vnd.projector+json; version=#{Projector::API_VERSION}"
35
+ request['User-Agent'] = "ProjectorRubySdk/#{Projector::VERSION}"
35
36
  request['Request-Id'] = SecureRandom.uuid
36
37
 
37
38
  # Add params as JSON if they exist
@@ -1,3 +1,4 @@
1
1
  module Projector
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
+ API_VERSION = 1
3
4
  end
metadata CHANGED
@@ -1,33 +1,33 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: projector
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Projector
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-19 00:00:00.000000000 Z
11
+ date: 2016-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-http-persistent
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '2.9'
20
- - - ! '>='
20
+ - - ">="
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.9.4
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - ~>
27
+ - - "~>"
28
28
  - !ruby/object:Gem::Version
29
29
  version: '2.9'
30
- - - ! '>='
30
+ - - ">="
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.9.4
33
33
  description: Create and manage users, devices, and events going to Projector.
@@ -37,7 +37,7 @@ executables: []
37
37
  extensions: []
38
38
  extra_rdoc_files: []
39
39
  files:
40
- - .gitignore
40
+ - ".gitignore"
41
41
  - Gemfile
42
42
  - LICENSE
43
43
  - README.md
@@ -71,18 +71,19 @@ require_paths:
71
71
  - lib
72
72
  required_ruby_version: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - ! '>='
74
+ - - ">="
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  required_rubygems_version: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - ! '>='
79
+ - - ">="
80
80
  - !ruby/object:Gem::Version
81
81
  version: '0'
82
82
  requirements: []
83
83
  rubyforge_project:
84
- rubygems_version: 2.4.8
84
+ rubygems_version: 2.4.5.1
85
85
  signing_key:
86
86
  specification_version: 4
87
87
  summary: Ruby SDK for interacting with the Projector SDK
88
88
  test_files: []
89
+ has_rdoc: