machineshop 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +20 -0
  3. data/{.idea → machineshop/.idea}/.name +0 -0
  4. data/{.idea → machineshop/.idea}/.rakeTasks +0 -0
  5. data/{.idea → machineshop/.idea}/compiler.xml +0 -0
  6. data/{.idea → machineshop/.idea}/copyright/profiles_settings.xml +0 -0
  7. data/{.idea → machineshop/.idea}/encodings.xml +0 -0
  8. data/{.idea → machineshop/.idea}/inspectionProfiles/Project_Default.xml +0 -0
  9. data/{.idea → machineshop/.idea}/inspectionProfiles/profiles_settings.xml +0 -0
  10. data/{.idea → machineshop/.idea}/machineshop.iml +0 -0
  11. data/{.idea → machineshop/.idea}/misc.xml +0 -0
  12. data/{.idea → machineshop/.idea}/modules.xml +0 -0
  13. data/{.idea → machineshop/.idea}/scopes/scope_settings.xml +0 -0
  14. data/{.idea → machineshop/.idea}/vcs.xml +0 -0
  15. data/{.idea → machineshop/.idea}/workspace.xml +0 -0
  16. data/{Gemfile → machineshop/Gemfile} +0 -0
  17. data/{LICENSE → machineshop/LICENSE} +0 -0
  18. data/{README.md → machineshop/README.md} +0 -0
  19. data/{Rakefile → machineshop/Rakefile} +0 -0
  20. data/{doc.txt → machineshop/doc.txt} +0 -0
  21. data/{lib → machineshop/lib}/machineshop/api_operations/create.rb +0 -0
  22. data/{lib → machineshop/lib}/machineshop/api_operations/delete.rb +0 -0
  23. data/{lib → machineshop/lib}/machineshop/api_operations/list.rb +0 -0
  24. data/{lib → machineshop/lib}/machineshop/api_operations/update.rb +0 -0
  25. data/{lib → machineshop/lib}/machineshop/api_resource.rb +0 -0
  26. data/{lib → machineshop/lib}/machineshop/configuration.rb +0 -0
  27. data/{lib → machineshop/lib}/machineshop/customer.rb +0 -0
  28. data/{lib → machineshop/lib}/machineshop/database.rb +0 -0
  29. data/{lib → machineshop/lib}/machineshop/device.rb +0 -0
  30. data/{lib → machineshop/lib}/machineshop/device_instance.rb +0 -0
  31. data/machineshop/lib/machineshop/errors/api_connection_error.rb +4 -0
  32. data/{lib → machineshop/lib}/machineshop/errors/api_error.rb +0 -0
  33. data/{lib → machineshop/lib}/machineshop/errors/authentication_error.rb +0 -0
  34. data/{lib → machineshop/lib}/machineshop/errors/database_error.rb +0 -0
  35. data/{lib → machineshop/lib}/machineshop/errors/invalid_request_error.rb +0 -0
  36. data/{lib → machineshop/lib}/machineshop/errors/machineshop_error.rb +0 -0
  37. data/{lib → machineshop/lib}/machineshop/json.rb +0 -0
  38. data/{lib → machineshop/lib}/machineshop/machineshop_cache.rb +0 -0
  39. data/{lib → machineshop/lib}/machineshop/machineshop_object.rb +0 -0
  40. data/{lib → machineshop/lib}/machineshop/mapping.rb +0 -0
  41. data/{lib → machineshop/lib}/machineshop/meter.rb +0 -0
  42. data/{lib → machineshop/lib}/machineshop/models/people.rb +0 -0
  43. data/{lib → machineshop/lib}/machineshop/report.rb +0 -0
  44. data/{lib → machineshop/lib}/machineshop/rule.rb +0 -0
  45. data/{lib → machineshop/lib}/machineshop/user.rb +0 -0
  46. data/{lib → machineshop/lib}/machineshop/util.rb +0 -0
  47. data/{lib → machineshop/lib}/machineshop/utility.rb +0 -0
  48. data/{lib → machineshop/lib}/machineshop/version.rb +1 -1
  49. data/{lib → machineshop/lib}/machineshop.rb +1 -1
  50. data/{machineshop.gemspec → machineshop/machineshop.gemspec} +0 -0
  51. data/{spec → machineshop/spec}/lib/api_calls_spec.rb +0 -0
  52. data/{spec → machineshop/spec}/lib/customer_spec.rb +0 -0
  53. data/{spec → machineshop/spec}/lib/device_spec.rb +0 -0
  54. data/{spec → machineshop/spec}/lib/mapping_spec.rb +0 -0
  55. data/{spec → machineshop/spec}/lib/meter_spec.rb +0 -0
  56. data/{spec → machineshop/spec}/lib/report_spec.rb +0 -0
  57. data/{spec → machineshop/spec}/lib/rule_spec.rb +0 -0
  58. data/{spec → machineshop/spec}/lib/user_spec.rb +1 -1
  59. data/{spec → machineshop/spec}/spec_helper.rb +0 -0
  60. metadata +61 -68
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 029fbc9a45ed155aa843799c482f78359864cf3e
4
- data.tar.gz: 902e70e182579ee463e26bcf37b91e48ced6f7ca
3
+ metadata.gz: fd4d0af4f7f1a632762666cdfd7496ccb8a5b989
4
+ data.tar.gz: 2eaf3b23d7d0bdcaecf28b0db1b48e76d69c7655
5
5
  SHA512:
6
- metadata.gz: 7d8ecdb4c6f26bb31ce80e3a8369835746027347a8fab2585043a6690095018582b1e30ee734aa5f693edc28a66d7378a9feec6120ffb0331525b816ca9ef7b8
7
- data.tar.gz: 94954d85e75a785c48b300d38dfd9a8ae05cbdfa8140edab81e58d0599c2529bdbda0101795af86d95a36a78ea0184b9ef193952d5d4e9f46d8d2fac71ed1618
6
+ metadata.gz: 26d36ca97b34900c810c32dda2f35489ce70e38d2d0a45e0facc65a917102b8ecd8735c4168c75551eee8cd67c939b454c33a40804b3abb05fd573467c7a708f
7
+ data.tar.gz: 1390ae825f0f91bdd17d7da7a14a54d02b2efbad79d21cf3939b23946f354c47bc96c1c7ecc7e384cb30bee4a7fb3add0e13d90bd3539ec7eb791bef9b8568a1
data/.gitignore ADDED
@@ -0,0 +1,20 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ ../.project
19
+ .project
20
+
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,4 @@
1
+ module MachineShop
2
+ class APIConnectionError < MachineShopError
3
+ end
4
+ end
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,3 +1,3 @@
1
1
  module MachineShop
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -5,7 +5,6 @@ require 'set'
5
5
  require 'openssl'
6
6
  require 'rest_client'
7
7
  require "base64"
8
- require 'rest_client'
9
8
  require "addressable/uri"
10
9
  require 'multi_json'
11
10
 
@@ -42,6 +41,7 @@ require 'machineshop/errors/machineshop_error'
42
41
  require 'machineshop/errors/api_error'
43
42
  require 'machineshop/errors/invalid_request_error'
44
43
  require 'machineshop/errors/authentication_error'
44
+ require 'machineshop/errors/api_connection_error'
45
45
 
46
46
  # require 'machineshop/models/people'
47
47
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -5,7 +5,7 @@ require_relative '../spec_helper'
5
5
  MachineShop.api_base_url= 'http://stage.services.machineshop.io/api/v0'
6
6
 
7
7
  #publisher_username = 'publisher@machineshop.com'
8
- publisher_username = 'admin@csr.com'
8
+ publisher_username = 'publisher@csr.com'
9
9
  publisher_password = 'password'
10
10
 
11
11
  describe MachineShop::User do
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: machineshop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - machineshop
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-02 00:00:00.000000000 Z
11
+ date: 2014-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -93,62 +93,64 @@ executables: []
93
93
  extensions: []
94
94
  extra_rdoc_files: []
95
95
  files:
96
- - .idea/.name
97
- - .idea/.rakeTasks
98
- - .idea/compiler.xml
99
- - .idea/copyright/profiles_settings.xml
100
- - .idea/encodings.xml
101
- - .idea/inspectionProfiles/Project_Default.xml
102
- - .idea/inspectionProfiles/profiles_settings.xml
103
- - .idea/machineshop.iml
104
- - .idea/misc.xml
105
- - .idea/modules.xml
106
- - .idea/scopes/scope_settings.xml
107
- - .idea/vcs.xml
108
- - .idea/workspace.xml
109
- - Gemfile
110
- - LICENSE
111
- - README.md
112
- - Rakefile
113
- - doc.txt
114
- - lib/machineshop.rb
115
- - lib/machineshop/api_operations/create.rb
116
- - lib/machineshop/api_operations/delete.rb
117
- - lib/machineshop/api_operations/list.rb
118
- - lib/machineshop/api_operations/update.rb
119
- - lib/machineshop/api_resource.rb
120
- - lib/machineshop/configuration.rb
121
- - lib/machineshop/customer.rb
122
- - lib/machineshop/database.rb
123
- - lib/machineshop/device.rb
124
- - lib/machineshop/device_instance.rb
125
- - lib/machineshop/errors/api_error.rb
126
- - lib/machineshop/errors/authentication_error.rb
127
- - lib/machineshop/errors/database_error.rb
128
- - lib/machineshop/errors/invalid_request_error.rb
129
- - lib/machineshop/errors/machineshop_error.rb
130
- - lib/machineshop/json.rb
131
- - lib/machineshop/machineshop_cache.rb
132
- - lib/machineshop/machineshop_object.rb
133
- - lib/machineshop/mapping.rb
134
- - lib/machineshop/meter.rb
135
- - lib/machineshop/models/people.rb
136
- - lib/machineshop/report.rb
137
- - lib/machineshop/rule.rb
138
- - lib/machineshop/user.rb
139
- - lib/machineshop/util.rb
140
- - lib/machineshop/utility.rb
141
- - lib/machineshop/version.rb
142
- - machineshop.gemspec
143
- - spec/lib/api_calls_spec.rb
144
- - spec/lib/customer_spec.rb
145
- - spec/lib/device_spec.rb
146
- - spec/lib/mapping_spec.rb
147
- - spec/lib/meter_spec.rb
148
- - spec/lib/report_spec.rb
149
- - spec/lib/rule_spec.rb
150
- - spec/lib/user_spec.rb
151
- - spec/spec_helper.rb
96
+ - .gitignore
97
+ - machineshop/.idea/.name
98
+ - machineshop/.idea/.rakeTasks
99
+ - machineshop/.idea/compiler.xml
100
+ - machineshop/.idea/copyright/profiles_settings.xml
101
+ - machineshop/.idea/encodings.xml
102
+ - machineshop/.idea/inspectionProfiles/Project_Default.xml
103
+ - machineshop/.idea/inspectionProfiles/profiles_settings.xml
104
+ - machineshop/.idea/machineshop.iml
105
+ - machineshop/.idea/misc.xml
106
+ - machineshop/.idea/modules.xml
107
+ - machineshop/.idea/scopes/scope_settings.xml
108
+ - machineshop/.idea/vcs.xml
109
+ - machineshop/.idea/workspace.xml
110
+ - machineshop/Gemfile
111
+ - machineshop/LICENSE
112
+ - machineshop/README.md
113
+ - machineshop/Rakefile
114
+ - machineshop/doc.txt
115
+ - machineshop/lib/machineshop.rb
116
+ - machineshop/lib/machineshop/api_operations/create.rb
117
+ - machineshop/lib/machineshop/api_operations/delete.rb
118
+ - machineshop/lib/machineshop/api_operations/list.rb
119
+ - machineshop/lib/machineshop/api_operations/update.rb
120
+ - machineshop/lib/machineshop/api_resource.rb
121
+ - machineshop/lib/machineshop/configuration.rb
122
+ - machineshop/lib/machineshop/customer.rb
123
+ - machineshop/lib/machineshop/database.rb
124
+ - machineshop/lib/machineshop/device.rb
125
+ - machineshop/lib/machineshop/device_instance.rb
126
+ - machineshop/lib/machineshop/errors/api_connection_error.rb
127
+ - machineshop/lib/machineshop/errors/api_error.rb
128
+ - machineshop/lib/machineshop/errors/authentication_error.rb
129
+ - machineshop/lib/machineshop/errors/database_error.rb
130
+ - machineshop/lib/machineshop/errors/invalid_request_error.rb
131
+ - machineshop/lib/machineshop/errors/machineshop_error.rb
132
+ - machineshop/lib/machineshop/json.rb
133
+ - machineshop/lib/machineshop/machineshop_cache.rb
134
+ - machineshop/lib/machineshop/machineshop_object.rb
135
+ - machineshop/lib/machineshop/mapping.rb
136
+ - machineshop/lib/machineshop/meter.rb
137
+ - machineshop/lib/machineshop/models/people.rb
138
+ - machineshop/lib/machineshop/report.rb
139
+ - machineshop/lib/machineshop/rule.rb
140
+ - machineshop/lib/machineshop/user.rb
141
+ - machineshop/lib/machineshop/util.rb
142
+ - machineshop/lib/machineshop/utility.rb
143
+ - machineshop/lib/machineshop/version.rb
144
+ - machineshop/machineshop.gemspec
145
+ - machineshop/spec/lib/api_calls_spec.rb
146
+ - machineshop/spec/lib/customer_spec.rb
147
+ - machineshop/spec/lib/device_spec.rb
148
+ - machineshop/spec/lib/mapping_spec.rb
149
+ - machineshop/spec/lib/meter_spec.rb
150
+ - machineshop/spec/lib/report_spec.rb
151
+ - machineshop/spec/lib/rule_spec.rb
152
+ - machineshop/spec/lib/user_spec.rb
153
+ - machineshop/spec/spec_helper.rb
152
154
  homepage: ''
153
155
  licenses: []
154
156
  metadata: {}
@@ -172,13 +174,4 @@ rubygems_version: 2.2.1
172
174
  signing_key:
173
175
  specification_version: 4
174
176
  summary: A convenient way to call into the machineshop API.
175
- test_files:
176
- - spec/lib/api_calls_spec.rb
177
- - spec/lib/customer_spec.rb
178
- - spec/lib/device_spec.rb
179
- - spec/lib/mapping_spec.rb
180
- - spec/lib/meter_spec.rb
181
- - spec/lib/report_spec.rb
182
- - spec/lib/rule_spec.rb
183
- - spec/lib/user_spec.rb
184
- - spec/spec_helper.rb
177
+ test_files: []