spanner 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '082aae9dadaa848bff6868d920d15d9cf837c2d78409272621c0c5ce0f39f173'
4
- data.tar.gz: e4cd05bbfa0e2e1acfa3357dc82093d5f618a3c6acbf9f5ca415298065d80b2e
3
+ metadata.gz: 18dce00673b3d83a70ccdcf78283efab69bd771af491a4192e96ec66c5ec17d1
4
+ data.tar.gz: 46f113295a0eff52a93447a2c083c426479387540e7f7b8c1201212b246c3180
5
5
  SHA512:
6
- metadata.gz: 0ebb8c6f50e970f2f551760079d8b81fca888d103c96edf8c953ad0386ce60a0309219975ddc925fe36f508b19bb23c9af03fa017fc8b28858c94a98402ae881
7
- data.tar.gz: 4086710464fa7280770f7fdb8e6b081755798c8eb513d7119e774604ebe2e431261a0a242b45300e2cbf61d9525be04df71037588bae8e1206b509fa2eac5798
6
+ metadata.gz: e46e07de66d60cbc213363b8213e73aa67f3321ab54df8a31aed91d8d0912396102b53ba074862566c00b61fdf3fe9e4d13e2d596d2821a6d336c8adfdc97c20
7
+ data.tar.gz: aa3d3119881889760950ba891d54c1fc57e3dbf55c621acda67d19fe39c9668308b52a4905d0a10defe9a38025eccd85aefc10a6874182d90e51d84d6e2981c3
@@ -0,0 +1,43 @@
1
+ # Ruby CircleCI 2.0 configuration file
2
+ #
3
+ # Check https://circleci.com/docs/2.0/language-ruby/ for more details
4
+ #
5
+ version: 2
6
+ jobs:
7
+ build:
8
+ docker:
9
+ # specify the version you desire here
10
+ - image: circleci/ruby:2.4.1-node-browsers
11
+
12
+ # Specify service dependencies here if necessary
13
+ # CircleCI maintains a library of pre-built images
14
+ # documented at https://circleci.com/docs/2.0/circleci-images/
15
+ # - image: circleci/postgres:9.4
16
+
17
+ working_directory: ~/repo
18
+
19
+ steps:
20
+ - checkout
21
+
22
+ # Download and cache dependencies
23
+ - restore_cache:
24
+ keys:
25
+ - v1-dependencies-{{ checksum "Gemfile" }}
26
+ # fallback to using the latest cache if no exact match is found
27
+ - v1-dependencies-
28
+
29
+ - run:
30
+ name: install dependencies
31
+ command: |
32
+ bundle install --jobs=4 --retry=3 --path vendor/bundle
33
+
34
+ - save_cache:
35
+ paths:
36
+ - ./vendor/bundle
37
+ key: v1-dependencies-{{ checksum "Gemfile" }}
38
+
39
+ # run tests!
40
+ - run:
41
+ name: run tests
42
+ command: |
43
+ bundle exec rake test
data/.gitignore CHANGED
@@ -6,3 +6,4 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
+ Gemfile.lock
@@ -62,15 +62,16 @@ class Spanner
62
62
  # part is context
63
63
  multiplier = case part
64
64
  when "s", "sec", "seconds" then 1
65
- when "h", "hours", "hrs" then 3600
66
65
  when "m", "min", "minutes" then 60
66
+ when "h", "hours", "hrs" then 3600
67
67
  when "d", "days" then 86_400
68
68
  when "w", "wks", "weeks" then 604_800
69
69
  when "months", "month", "M" then length_of_month
70
70
  when "years", "y" then 31_556_926
71
71
  when /\As/ then 1
72
72
  when /\Am/ then 60
73
- when /\Ah/ then 86_400
73
+ when /\Ah/ then 3600
74
+ when /\Ad/ then 86_400
74
75
  when /\Aw/ then 604_800
75
76
  when /\AM/ then length_of_month
76
77
  when /\Ay/ then 31_556_926
@@ -1,3 +1,3 @@
1
1
  class Spanner
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  end
22
22
  spec.require_paths = ["lib"]
23
23
 
24
- spec.add_development_dependency "bundler", "~> 1.17"
25
- spec.add_development_dependency "rake", "~> 10.0"
24
+ spec.add_development_dependency "bundler"
25
+ spec.add_development_dependency "rake"
26
26
  spec.add_development_dependency "minitest", "~> 5.0"
27
27
  end
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spanner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - joshbuddy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-26 00:00:00.000000000 Z
11
+ date: 2019-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.17'
19
+ version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.17'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: minitest
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -59,6 +59,7 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
+ - ".circleci/config.yml"
62
63
  - ".gitignore"
63
64
  - Gemfile
64
65
  - LICENSE.txt