masheri 0.5.6 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,6 @@
1
+ .bundle
2
+ pkg
3
+ .#*
4
+ doc/
5
+ coverage/
6
+ measurements/
@@ -0,0 +1,17 @@
1
+ lib/masheri.rb 9d465b90042fec37de2f0e7fa77a7042b389dd86
2
+ lib/masheri/key.rb fc87e10a825d99aef831f1f6f46e920890eff9f1
3
+ lib/masheri/role.rb 00f8d2a9ccbc999e5fed4f348775db2ffcc21f86
4
+ lib/masheri/init.rb b290e7ef24575e16938a46131a8437682667b07c
5
+ lib/masheri/local.rb 7c338ed2840d2bf55f9f5e4eed04f66c80840eb3
6
+ lib/masheri/query.rb f3e440a8f96d205a4e297e908c8802926c8aa847
7
+ lib/masheri/rails.rb 0712d16924b1836ff67370a2de96ce5d867bf08e
8
+ lib/masheri/config.rb 9a8c734107ec07fffc34bce2d3e0120c90b2fe98
9
+ lib/masheri/member.rb 3bc2a05700c50eb3a9d6f7057c8e349e99705bd2
10
+ lib/masheri/service.rb cc4efec266b925af196679a84e50594fdef76c00
11
+ lib/masheri/rpc_client.rb 77d1517657290a861a428531500bf1a823f9bbd7
12
+ lib/masheri/exceptions.rb e443e5ee911d77ac23f03805313fbc5b37b60c23
13
+ lib/masheri/rest_client.rb 3a00255f78dad200ac1dcee5b6b3dde4bf517b05
14
+ lib/masheri/query_builder.rb 0d283e7212fa919c933ea798b20896d69798e7cd
15
+ lib/masheri/query_methods.rb c6936596234ad97a8789dc50a116c268ff4b235e
16
+ lib/masheri/api_object_base.rb c7ecc375eb05cf129a4052f5a56a48df5b92ca7a
17
+ lib/masheri/rest_client/query.rb 8d28df65a16f5812f9add58c92a2eb886bb35ca5
Binary file
Binary file
Binary file
data/Gemfile ADDED
@@ -0,0 +1,22 @@
1
+ source 'http://rubygems.org'
2
+
3
+ gem 'activesupport', ">= 3.1.0"
4
+ gem 'rest-client'
5
+ gem 'json'
6
+
7
+ group :test do
8
+ gem 'timecop'
9
+ gem 'pry'
10
+ end
11
+
12
+ group :development do
13
+ gem 'redcarpet'
14
+ gem 'jeweler'
15
+ end
16
+
17
+ group :development, :test do
18
+ gem 'devtools', git: 'https://github.com/rom-rb/devtools.git'
19
+ end
20
+
21
+ # Added by devtools
22
+ eval_gemfile 'Gemfile.devtools'
@@ -0,0 +1,55 @@
1
+ # encoding: utf-8
2
+
3
+ group :development do
4
+ gem 'rake', '~> 10.1.0'
5
+ gem 'rspec', '~> 2.14.1'
6
+ gem 'yard', '~> 0.8.7'
7
+ end
8
+
9
+ group :yard do
10
+ gem 'kramdown', '~> 1.2.0'
11
+ end
12
+
13
+ group :guard do
14
+ gem 'guard', '~> 1.8.1'
15
+ gem 'guard-bundler', '~> 1.0.0'
16
+ gem 'guard-rspec', '~> 3.0.2'
17
+ gem 'guard-rubocop', '~> 0.2.0'
18
+ gem 'guard-mutant', '~> 0.0.1'
19
+
20
+ # file system change event handling
21
+ gem 'listen', '~> 1.3.0'
22
+ gem 'rb-fchange', '~> 0.0.6', require: false
23
+ gem 'rb-fsevent', '~> 0.9.3', require: false
24
+ gem 'rb-inotify', '~> 0.9.0', require: false
25
+
26
+ # notification handling
27
+ gem 'libnotify', '~> 0.8.0', require: false
28
+ gem 'rb-notifu', '~> 0.0.4', require: false
29
+ gem 'terminal-notifier-guard', '~> 1.5.3', require: false
30
+ end
31
+
32
+ group :metrics do
33
+ gem 'coveralls', '~> 0.6.7'
34
+ gem 'flay', '~> 2.4.0'
35
+ gem 'flog', '~> 4.1.1'
36
+ gem 'reek', '~> 1.3.2'
37
+ gem 'rubocop', '~> 0.13.0'
38
+ gem 'simplecov', '~> 0.7.1'
39
+ gem 'yardstick', '~> 0.9.7', git: 'https://github.com/dkubb/yardstick.git'
40
+
41
+ platforms :ruby_19, :ruby_20 do
42
+ gem 'mutant', git: 'https://github.com/mbj/mutant.git'
43
+ gem 'yard-spellcheck', '~> 0.1.5'
44
+ end
45
+ end
46
+
47
+ group :benchmarks do
48
+ gem 'rbench', '~> 0.2.3'
49
+ end
50
+
51
+ platform :jruby do
52
+ group :jruby do
53
+ gem 'jruby-openssl', '~> 0.8.5'
54
+ end
55
+ end
@@ -0,0 +1,255 @@
1
+ GIT
2
+ remote: https://github.com/dkubb/yardstick.git
3
+ revision: 3c962c99cba0dd7d2d07685354f2bce013c6fb2f
4
+ specs:
5
+ yardstick (0.9.7)
6
+ yard (~> 0.8, >= 0.8.7)
7
+
8
+ GIT
9
+ remote: https://github.com/mbj/mutant.git
10
+ revision: c121e8b400fbbb74684c9bb17a9695152c8ed76f
11
+ specs:
12
+ mutant (0.3.0.rc2)
13
+ adamantium (~> 0.1.0)
14
+ anima (~> 0.1.1)
15
+ concord (~> 0.1.4)
16
+ descendants_tracker (~> 0.0.1)
17
+ equalizer (~> 0.0.7)
18
+ ice_nine (~> 0.8)
19
+ inflecto (~> 0.0.2)
20
+ parser (~> 2.0.0.pre7)
21
+ rspec (~> 2.14.1)
22
+ unparser (~> 0.1.1)
23
+
24
+ GIT
25
+ remote: https://github.com/rom-rb/devtools.git
26
+ revision: 6d076af50d8134d77e90119bba8c416a1164d886
27
+ specs:
28
+ devtools (0.0.2)
29
+
30
+ GEM
31
+ remote: http://rubygems.org/
32
+ specs:
33
+ abstract_type (0.0.6)
34
+ activesupport (4.0.0)
35
+ i18n (~> 0.6, >= 0.6.4)
36
+ minitest (~> 4.2)
37
+ multi_json (~> 1.3)
38
+ thread_safe (~> 0.1)
39
+ tzinfo (~> 0.3.37)
40
+ adamantium (0.1.0)
41
+ ice_nine (~> 0.9)
42
+ thread_safe (~> 0.1.2)
43
+ addressable (2.3.5)
44
+ anima (0.1.1)
45
+ abstract_type (~> 0.0.6)
46
+ adamantium (~> 0.1.0)
47
+ equalizer (~> 0.0.7)
48
+ ast (1.1.0)
49
+ atomic (1.1.13)
50
+ backports (3.3.3)
51
+ builder (3.2.2)
52
+ coderay (1.0.9)
53
+ concord (0.1.4)
54
+ adamantium (~> 0.1)
55
+ equalizer (~> 0.0.7)
56
+ coveralls (0.6.9)
57
+ multi_json (~> 1.3)
58
+ rest-client
59
+ simplecov (>= 0.7)
60
+ term-ansicolor
61
+ thor
62
+ descendants_tracker (0.0.1)
63
+ diff-lcs (1.2.4)
64
+ equalizer (0.0.7)
65
+ faraday (0.8.8)
66
+ multipart-post (~> 1.2.0)
67
+ ffi (1.9.0)
68
+ ffi-hunspell (0.3.0)
69
+ ffi (~> 1.0)
70
+ flay (2.4.0)
71
+ ruby_parser (~> 3.0)
72
+ sexp_processor (~> 4.0)
73
+ flog (4.1.2)
74
+ ruby_parser (~> 3.1, > 3.1.0)
75
+ sexp_processor (~> 4.0)
76
+ formatador (0.2.4)
77
+ git (1.2.6)
78
+ github_api (0.10.1)
79
+ addressable
80
+ faraday (~> 0.8.1)
81
+ hashie (>= 1.2)
82
+ multi_json (~> 1.4)
83
+ nokogiri (~> 1.5.2)
84
+ oauth2
85
+ guard (1.8.2)
86
+ formatador (>= 0.2.4)
87
+ listen (>= 1.0.0)
88
+ lumberjack (>= 1.0.2)
89
+ pry (>= 0.9.10)
90
+ thor (>= 0.14.6)
91
+ guard-bundler (1.0.0)
92
+ bundler (~> 1.0)
93
+ guard (~> 1.1)
94
+ guard-mutant (0.0.1)
95
+ guard (~> 1.8)
96
+ inflecto (~> 0.0.2)
97
+ mutant (~> 0.3.0.beta15)
98
+ guard-rspec (3.0.3)
99
+ guard (>= 1.8)
100
+ rspec (~> 2.13)
101
+ guard-rubocop (0.2.2)
102
+ guard (~> 1.8)
103
+ rubocop (~> 0.10)
104
+ hashie (2.0.5)
105
+ highline (1.6.19)
106
+ httpauth (0.2.0)
107
+ i18n (0.6.5)
108
+ ice_nine (0.9.0)
109
+ inflecto (0.0.2)
110
+ jeweler (1.8.7)
111
+ builder
112
+ bundler (~> 1.0)
113
+ git (>= 1.2.5)
114
+ github_api (= 0.10.1)
115
+ highline (>= 1.6.15)
116
+ nokogiri (= 1.5.10)
117
+ rake
118
+ rdoc
119
+ json (1.8.0)
120
+ jwt (0.1.8)
121
+ multi_json (>= 1.5)
122
+ kramdown (1.2.0)
123
+ libnotify (0.8.2)
124
+ ffi (>= 1.0.11)
125
+ listen (1.3.1)
126
+ rb-fsevent (>= 0.9.3)
127
+ rb-inotify (>= 0.9)
128
+ rb-kqueue (>= 0.2)
129
+ lumberjack (1.0.4)
130
+ method_source (0.8.2)
131
+ mime-types (1.25)
132
+ minitest (4.7.5)
133
+ multi_json (1.7.9)
134
+ multi_xml (0.5.5)
135
+ multipart-post (1.2.0)
136
+ nokogiri (1.5.10)
137
+ oauth2 (0.9.2)
138
+ faraday (~> 0.8)
139
+ httpauth (~> 0.2)
140
+ jwt (~> 0.1.4)
141
+ multi_json (~> 1.0)
142
+ multi_xml (~> 0.5)
143
+ rack (~> 1.2)
144
+ parser (2.0.0.pre7)
145
+ ast (~> 1.1)
146
+ slop (~> 3.4, >= 3.4.5)
147
+ powerpack (0.0.8)
148
+ pry (0.9.12.2)
149
+ coderay (~> 1.0.5)
150
+ method_source (~> 0.8)
151
+ slop (~> 3.4)
152
+ rack (1.5.2)
153
+ rainbow (1.1.4)
154
+ rake (10.1.0)
155
+ rb-fchange (0.0.6)
156
+ ffi
157
+ rb-fsevent (0.9.3)
158
+ rb-inotify (0.9.2)
159
+ ffi (>= 0.5.0)
160
+ rb-kqueue (0.2.0)
161
+ ffi (>= 0.5.0)
162
+ rb-notifu (0.0.4)
163
+ rbench (0.2.3)
164
+ rdoc (4.0.1)
165
+ json (~> 1.4)
166
+ redcarpet (3.0.0)
167
+ reek (1.3.3)
168
+ ruby2ruby (~> 2.0.2)
169
+ ruby_parser (~> 3.1, >= 3.1.1)
170
+ sexp_processor
171
+ rest-client (1.6.7)
172
+ mime-types (>= 1.16)
173
+ rspec (2.14.1)
174
+ rspec-core (~> 2.14.0)
175
+ rspec-expectations (~> 2.14.0)
176
+ rspec-mocks (~> 2.14.0)
177
+ rspec-core (2.14.5)
178
+ rspec-expectations (2.14.2)
179
+ diff-lcs (>= 1.1.3, < 2.0)
180
+ rspec-mocks (2.14.3)
181
+ rubocop (0.13.0)
182
+ backports (~> 3.3.3)
183
+ parser (~> 2.0.0.pre6)
184
+ powerpack (~> 0.0.6)
185
+ rainbow (>= 1.1.4)
186
+ ruby2ruby (2.0.6)
187
+ ruby_parser (~> 3.1)
188
+ sexp_processor (~> 4.0)
189
+ ruby_parser (3.2.2)
190
+ sexp_processor (~> 4.1)
191
+ sexp_processor (4.3.0)
192
+ simplecov (0.7.1)
193
+ multi_json (~> 1.0)
194
+ simplecov-html (~> 0.7.1)
195
+ simplecov-html (0.7.1)
196
+ slop (3.4.6)
197
+ term-ansicolor (1.2.2)
198
+ tins (~> 0.8)
199
+ terminal-notifier-guard (1.5.3)
200
+ thor (0.18.1)
201
+ thread_safe (0.1.2)
202
+ atomic
203
+ timecop (0.6.3)
204
+ tins (0.9.0)
205
+ tzinfo (0.3.37)
206
+ unparser (0.1.2)
207
+ abstract_type (~> 0.0.6)
208
+ adamantium (~> 0.1.0)
209
+ concord (~> 0.1.1)
210
+ equalizer (~> 0.0.7)
211
+ parser (~> 2.0.0.pre6)
212
+ yard (0.8.7.1)
213
+ yard-spellcheck (0.1.5)
214
+ ffi-hunspell (~> 0.2)
215
+ yard (~> 0.6)
216
+
217
+ PLATFORMS
218
+ ruby
219
+
220
+ DEPENDENCIES
221
+ activesupport (>= 3.1.0)
222
+ coveralls (~> 0.6.7)
223
+ devtools!
224
+ flay (~> 2.4.0)
225
+ flog (~> 4.1.1)
226
+ guard (~> 1.8.1)
227
+ guard-bundler (~> 1.0.0)
228
+ guard-mutant (~> 0.0.1)
229
+ guard-rspec (~> 3.0.2)
230
+ guard-rubocop (~> 0.2.0)
231
+ jeweler
232
+ jruby-openssl (~> 0.8.5)
233
+ json
234
+ kramdown (~> 1.2.0)
235
+ libnotify (~> 0.8.0)
236
+ listen (~> 1.3.0)
237
+ mutant!
238
+ pry
239
+ rake (~> 10.1.0)
240
+ rb-fchange (~> 0.0.6)
241
+ rb-fsevent (~> 0.9.3)
242
+ rb-inotify (~> 0.9.0)
243
+ rb-notifu (~> 0.0.4)
244
+ rbench (~> 0.2.3)
245
+ redcarpet
246
+ reek (~> 1.3.2)
247
+ rest-client
248
+ rspec (~> 2.14.1)
249
+ rubocop (~> 0.13.0)
250
+ simplecov (~> 0.7.1)
251
+ terminal-notifier-guard (~> 1.5.3)
252
+ timecop
253
+ yard (~> 0.8.7)
254
+ yard-spellcheck (~> 0.1.5)
255
+ yardstick (~> 0.9.7)!
@@ -0,0 +1,9 @@
1
+ # Added by devtools
2
+ require 'devtools'
3
+ Devtools.init_rake_tasks
4
+
5
+ Bundler::GemHelper.install_tasks
6
+
7
+ task :build_gem do
8
+ system "gem build --directory=pkg/"
9
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.6.0
@@ -0,0 +1,2 @@
1
+ ---
2
+ unit_test_timeout: 0.1
@@ -0,0 +1,3 @@
1
+ ---
2
+ threshold: 0
3
+ total_score: 0
@@ -0,0 +1,2 @@
1
+ ---
2
+ threshold: 0
@@ -0,0 +1,3 @@
1
+ ---
2
+ name: your_lib
3
+ namespace: YourLib
@@ -0,0 +1,103 @@
1
+ ---
2
+ Attribute:
3
+ enabled: true
4
+ exclude: []
5
+ BooleanParameter:
6
+ enabled: true
7
+ exclude: []
8
+ ClassVariable:
9
+ enabled: true
10
+ exclude: []
11
+ ControlParameter:
12
+ enabled: true
13
+ exclude: []
14
+ DataClump:
15
+ enabled: true
16
+ exclude: []
17
+ max_copies: 2
18
+ min_clump_size: 2
19
+ DuplicateMethodCall:
20
+ enabled: true
21
+ exclude: []
22
+ max_calls: 1
23
+ allow_calls: []
24
+ FeatureEnvy:
25
+ enabled: true
26
+ exclude: []
27
+ IrresponsibleModule:
28
+ enabled: true
29
+ exclude: []
30
+ LongParameterList:
31
+ enabled: true
32
+ exclude: []
33
+ max_params: 2
34
+ overrides:
35
+ initialize:
36
+ max_params: 3
37
+ LongYieldList:
38
+ enabled: true
39
+ exclude: []
40
+ max_params: 2
41
+ NestedIterators:
42
+ enabled: true
43
+ exclude: []
44
+ max_allowed_nesting: 1
45
+ ignore_iterators: []
46
+ NilCheck:
47
+ enabled: true
48
+ exclude: []
49
+ RepeatedConditional:
50
+ enabled: true
51
+ exclude: []
52
+ max_ifs: 1
53
+ TooManyInstanceVariables:
54
+ enabled: true
55
+ exclude: []
56
+ max_instance_variables: 3
57
+ TooManyMethods:
58
+ enabled: true
59
+ exclude: []
60
+ max_methods: 10
61
+ TooManyStatements:
62
+ enabled: true
63
+ exclude:
64
+ - each
65
+ max_statements: 2
66
+ UncommunicativeMethodName:
67
+ enabled: true
68
+ exclude: []
69
+ reject:
70
+ - !ruby/regexp /^[a-z]$/
71
+ - !ruby/regexp /[0-9]$/
72
+ - !ruby/regexp /[A-Z]/
73
+ accept: []
74
+ UncommunicativeModuleName:
75
+ enabled: true
76
+ exclude: []
77
+ reject:
78
+ - !ruby/regexp /^.$/
79
+ - !ruby/regexp /[0-9]$/
80
+ accept: []
81
+ UncommunicativeParameterName:
82
+ enabled: true
83
+ exclude: []
84
+ reject:
85
+ - !ruby/regexp /^.$/
86
+ - !ruby/regexp /[0-9]$/
87
+ - !ruby/regexp /[A-Z]/
88
+ accept: []
89
+ UncommunicativeVariableName:
90
+ enabled: true
91
+ exclude: []
92
+ reject:
93
+ - !ruby/regexp /^.$/
94
+ - !ruby/regexp /[0-9]$/
95
+ - !ruby/regexp /[A-Z]/
96
+ accept: []
97
+ UnusedParameters:
98
+ enabled: true
99
+ exclude: []
100
+ UtilityFunction:
101
+ enabled: true
102
+ exclude: []
103
+ max_helper_calls: 0