CloudSesame 0.9.4 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 02f14e8cadd284a12b337f3e28fb7744e1065227
4
- data.tar.gz: 565265a014c5a268368eeda35351ce1ae1d992ed
3
+ metadata.gz: eefe60548aa62b0ea8a414e06d77ad87ded85243
4
+ data.tar.gz: aa5a2425289c6adea3ee4b5adbf85d54da86cd8f
5
5
  SHA512:
6
- metadata.gz: b92efd2b60322029bd31fb265cef7af32e3103cb1a9c170698561128269950853cb47bc036a4ba6e5fd477ce5ab200a8a3ced3eb65c43689aa039f44a835b0ec
7
- data.tar.gz: 3b4d7b871accdebdd3cfa671074911be4407fce7973de202db242f8390600724751958c8f64ac4b0967bec26e43075e09adecb133c9a3e9884362a34e1d00768
6
+ metadata.gz: 2b9bb21b499164f722bf166d6e99c322a91ff7867bd25667e907ec0148a223f2ce672248a17a509097ff9fcf1945bb05ba29c1f7493f894f42bf57e8eb92f06d
7
+ data.tar.gz: 8418dae571d39b7a9ab5378e86df6a5456e069d6562d6ed2efcb64c2036a0075944884acc3ea95766d1e29b64a903551e120758080a7f9df5629c45588a635a1
data/.rubocop.yml CHANGED
@@ -82,7 +82,7 @@ Lint/EnsureReturn:
82
82
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-return-ensure'
83
83
  Enabled: true
84
84
 
85
- Lint/Eval:
85
+ Security/Eval:
86
86
  Description: 'The use of eval represents a serious security risk.'
87
87
  Enabled: true
88
88
 
@@ -531,11 +531,6 @@ Style/DefWithParentheses:
531
531
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#method-parens'
532
532
  Enabled: false
533
533
 
534
- Style/DeprecatedHashMethods:
535
- Description: 'Checks for use of deprecated Hash methods.'
536
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-key'
537
- Enabled: false
538
-
539
534
  Style/Documentation:
540
535
  Description: 'Document classes and non-namespace modules.'
541
536
  Enabled: false
@@ -719,7 +714,7 @@ Style/LineEndConcatenation:
719
714
  line end.
720
715
  Enabled: false
721
716
 
722
- Style/MethodCallParentheses:
717
+ Style/MethodCallWithoutArgsParentheses:
723
718
  Description: 'Do not use parentheses for method calls with no arguments.'
724
719
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-args-no-parens'
725
720
  Enabled: false
data/Gemfile.lock CHANGED
@@ -1,29 +1,28 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- CloudSesame (0.9.4)
4
+ CloudSesame (1.0.0)
5
5
  aws-sdk (~> 2)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- ast (2.2.0)
11
- aws-sdk (2.5.8)
12
- aws-sdk-resources (= 2.5.8)
13
- aws-sdk-core (2.5.8)
10
+ ast (2.3.0)
11
+ aws-sdk (2.8.14)
12
+ aws-sdk-resources (= 2.8.14)
13
+ aws-sdk-core (2.8.14)
14
+ aws-sigv4 (~> 1.0)
14
15
  jmespath (~> 1.0)
15
- aws-sdk-resources (2.5.8)
16
- aws-sdk-core (= 2.5.8)
17
- codeclimate-test-reporter (0.5.0)
18
- simplecov (>= 0.7.1, < 1.0.0)
16
+ aws-sdk-resources (2.8.14)
17
+ aws-sdk-core (= 2.8.14)
18
+ aws-sigv4 (1.0.0)
19
19
  coderay (1.1.1)
20
- diff-lcs (1.2.5)
21
- docile (1.1.5)
22
- ffi (1.9.10)
20
+ diff-lcs (1.3)
21
+ ffi (1.9.18)
23
22
  formatador (0.2.5)
24
- guard (2.13.0)
23
+ guard (2.14.1)
25
24
  formatador (>= 0.2.4)
26
- listen (>= 2.7, <= 4.0)
25
+ listen (>= 2.7, < 4.0)
27
26
  lumberjack (~> 1.0)
28
27
  nenv (~> 0.1)
29
28
  notiffany (~> 0.0)
@@ -31,7 +30,7 @@ GEM
31
30
  shellany (~> 0.0)
32
31
  thor (>= 0.18.1)
33
32
  guard-compat (1.2.1)
34
- guard-rspec (4.6.5)
33
+ guard-rspec (4.7.3)
35
34
  guard (~> 2.1)
36
35
  guard-compat (~> 1.1)
37
36
  rspec (>= 2.99.0, < 4.0)
@@ -39,64 +38,59 @@ GEM
39
38
  guard (~> 2.0)
40
39
  rubocop (~> 0.20)
41
40
  jmespath (1.3.1)
42
- json (1.8.3)
43
- listen (3.1.1)
44
- rb-fsevent (>= 0.9.3)
45
- rb-inotify (>= 0.9.7)
46
- lumberjack (1.0.10)
41
+ listen (3.1.5)
42
+ rb-fsevent (~> 0.9, >= 0.9.4)
43
+ rb-inotify (~> 0.9, >= 0.9.7)
44
+ ruby_dep (~> 1.2)
45
+ lumberjack (1.0.11)
47
46
  method_source (0.8.2)
48
47
  nenv (0.3.0)
49
- notiffany (0.0.8)
48
+ notiffany (0.1.1)
50
49
  nenv (~> 0.1)
51
50
  shellany (~> 0.0)
52
- parser (2.3.1.0)
51
+ parser (2.4.0.0)
53
52
  ast (~> 2.2)
54
53
  powerpack (0.1.1)
55
- pry (0.10.3)
54
+ pry (0.10.4)
56
55
  coderay (~> 1.1.0)
57
56
  method_source (~> 0.8.1)
58
57
  slop (~> 3.4)
59
- rainbow (2.1.0)
60
- rb-fsevent (0.9.7)
61
- rb-inotify (0.9.7)
58
+ rainbow (2.2.1)
59
+ rb-fsevent (0.9.8)
60
+ rb-inotify (0.9.8)
62
61
  ffi (>= 0.5.0)
63
- rspec (3.4.0)
64
- rspec-core (~> 3.4.0)
65
- rspec-expectations (~> 3.4.0)
66
- rspec-mocks (~> 3.4.0)
67
- rspec-core (3.4.4)
68
- rspec-support (~> 3.4.0)
69
- rspec-expectations (3.4.0)
62
+ rspec (3.5.0)
63
+ rspec-core (~> 3.5.0)
64
+ rspec-expectations (~> 3.5.0)
65
+ rspec-mocks (~> 3.5.0)
66
+ rspec-core (3.5.4)
67
+ rspec-support (~> 3.5.0)
68
+ rspec-expectations (3.5.0)
70
69
  diff-lcs (>= 1.2.0, < 2.0)
71
- rspec-support (~> 3.4.0)
72
- rspec-mocks (3.4.1)
70
+ rspec-support (~> 3.5.0)
71
+ rspec-mocks (3.5.0)
73
72
  diff-lcs (>= 1.2.0, < 2.0)
74
- rspec-support (~> 3.4.0)
75
- rspec-support (3.4.1)
76
- rubocop (0.39.0)
77
- parser (>= 2.3.0.7, < 3.0)
73
+ rspec-support (~> 3.5.0)
74
+ rspec-support (3.5.0)
75
+ rubocop (0.48.0)
76
+ parser (>= 2.3.3.1, < 3.0)
78
77
  powerpack (~> 0.1)
79
78
  rainbow (>= 1.99.1, < 3.0)
80
79
  ruby-progressbar (~> 1.7)
81
80
  unicode-display_width (~> 1.0, >= 1.0.1)
82
- ruby-prof (0.15.9)
83
- ruby-progressbar (1.8.0)
81
+ ruby-prof (0.16.2)
82
+ ruby-progressbar (1.8.1)
83
+ ruby_dep (1.5.0)
84
84
  shellany (0.0.1)
85
- simplecov (0.11.2)
86
- docile (~> 1.1.0)
87
- json (~> 1.8)
88
- simplecov-html (~> 0.10.0)
89
- simplecov-html (0.10.0)
90
85
  slop (3.6.0)
91
- thor (0.19.1)
92
- unicode-display_width (1.0.3)
86
+ thor (0.19.4)
87
+ unicode-display_width (1.1.3)
93
88
 
94
89
  PLATFORMS
95
90
  ruby
96
91
 
97
92
  DEPENDENCIES
98
93
  CloudSesame!
99
- codeclimate-test-reporter
100
94
  guard
101
95
  guard-rspec
102
96
  guard-rubocop
@@ -105,4 +99,4 @@ DEPENDENCIES
105
99
  ruby-prof
106
100
 
107
101
  BUNDLED WITH
108
- 1.11.2
102
+ 1.14.6
data/Guardfile CHANGED
@@ -24,7 +24,7 @@
24
24
  # * zeus: 'zeus rspec' (requires the server to be started separately)
25
25
  # * 'just' rspec: 'rspec'
26
26
 
27
- guard :rspec, cmd: "CODECLIMATE_REPO_TOKEN=f80e30cc893d8c6a41550e747e1d838c6123e9cc53f088bf4bc1337d40b3e581 bundle exec rspec" do
27
+ guard :rspec, cmd: "bundle exec rspec" do
28
28
  # guard :rspec, cmd: "bundle exec rspec" do
29
29
  require "guard/rspec/dsl"
30
30
  dsl = Guard::RSpec::Dsl.new(self)
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2016 47colborne
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/cloud_sesame.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'CloudSesame'
3
- s.version = '0.9.4'
4
- s.date = '2016-09-12'
3
+ s.version = '1.0.0'
4
+ s.date = '2017-03-29'
5
5
  s.summary = "AWS CloudSearch Query DSL"
6
6
  s.description = "AWS CloudSearch Query DSL"
7
7
  s.authors = [
@@ -33,5 +33,4 @@ Gem::Specification.new do |s|
33
33
  s.add_development_dependency 'guard-rspec'
34
34
  s.add_development_dependency 'ruby-prof'
35
35
  s.add_development_dependency 'guard-rubocop'
36
- s.add_development_dependency 'codeclimate-test-reporter'
37
36
  end
data/lib/cloud_sesame.rb CHANGED
@@ -2,6 +2,7 @@
2
2
  # ===============================================
3
3
  require 'aws-sdk'
4
4
  require 'forwardable'
5
+ require 'date'
5
6
 
6
7
  # Internal Libraries
7
8
  # ===============================================
@@ -24,27 +24,27 @@ module CloudSesame
24
24
  end
25
25
 
26
26
  def self.string_range?(value)
27
- value.is_a?(String) && !!(RANGE_FORMAT =~ strip(value))
27
+ value.is_a?(::String) && !!(RANGE_FORMAT =~ strip(value))
28
28
  end
29
29
 
30
30
  def self.numeric?(value)
31
- value.is_a?(Numeric)
31
+ value.is_a?(::Numeric)
32
32
  end
33
33
 
34
34
  def self.string_numeric?(value)
35
- value.is_a?(String) && !!(DIGIT_FORMAT =~ value)
35
+ value.is_a?(::String) && !!(DIGIT_FORMAT =~ value)
36
36
  end
37
37
 
38
38
  def self.datetime?(value)
39
- value.kind_of?(Date) || value.kind_of?(Time)
39
+ value.kind_of?(::Date) || value.kind_of?(::Time)
40
40
  end
41
41
 
42
42
  def self.string_datetime?(value)
43
- value.is_a?(String) && DATETIME_FORMAT =~ value
43
+ value.is_a?(::String) && DATETIME_FORMAT =~ value
44
44
  end
45
45
 
46
46
  def self.string_time?(value)
47
- value.is_a?(String) && TIME_FORMAT =~ value
47
+ value.is_a?(::String) && TIME_FORMAT =~ value
48
48
  end
49
49
 
50
50
  def self.string_date?(value)
@@ -27,7 +27,7 @@ module CloudSesame
27
27
  end
28
28
 
29
29
  def compile
30
- map(&:compile).join(' ')
30
+ map(&:compile).compact.join(' ')
31
31
  end
32
32
 
33
33
  end
@@ -1,4 +1,5 @@
1
1
  require 'spec_helper'
2
+ require 'securerandom'
2
3
 
3
4
  describe AbstractObject do
4
5
 
data/spec/spec_helper.rb CHANGED
@@ -1,6 +1,3 @@
1
- require "codeclimate-test-reporter"
2
- CodeClimate::TestReporter.start
3
-
4
1
  require 'rubygems'
5
2
  require 'bundler/setup'
6
3
  Bundler.setup
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: CloudSesame
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Chu
@@ -16,7 +16,7 @@ authors:
16
16
  autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
- date: 2016-09-12 00:00:00.000000000 Z
19
+ date: 2017-03-29 00:00:00.000000000 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: aws-sdk
@@ -116,20 +116,6 @@ dependencies:
116
116
  - - ">="
117
117
  - !ruby/object:Gem::Version
118
118
  version: '0'
119
- - !ruby/object:Gem::Dependency
120
- name: codeclimate-test-reporter
121
- requirement: !ruby/object:Gem::Requirement
122
- requirements:
123
- - - ">="
124
- - !ruby/object:Gem::Version
125
- version: '0'
126
- type: :development
127
- prerelease: false
128
- version_requirements: !ruby/object:Gem::Requirement
129
- requirements:
130
- - - ">="
131
- - !ruby/object:Gem::Version
132
- version: '0'
133
119
  description: AWS CloudSearch Query DSL
134
120
  email: dev@retailcommon.com
135
121
  executables: []
@@ -144,6 +130,7 @@ files:
144
130
  - Gemfile
145
131
  - Gemfile.lock
146
132
  - Guardfile
133
+ - LICENSE
147
134
  - README.md
148
135
  - cloud_sesame.gemspec
149
136
  - coverage/.last_run.json
@@ -287,7 +274,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
287
274
  version: '0'
288
275
  requirements: []
289
276
  rubyforge_project:
290
- rubygems_version: 2.6.4
277
+ rubygems_version: 2.5.1
291
278
  signing_key:
292
279
  specification_version: 4
293
280
  summary: AWS CloudSearch Query DSL