hobby 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -7
- data/hobby.gemspec +1 -1
- data/lib/hobby/router/route.rb +6 -0
- data/lib/hobby/router.rb +1 -5
- data/spec/router_spec.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: efd7204b29860fd75f5957d387a7e3471f29dc4f
|
4
|
+
data.tar.gz: 39171775abf2b781a075ca41dff0269ec2604b91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27bd4fe6035a627fd69303caf363ada2a5a295a02358a0d6375a26d7aa8326a0072c49af4e6c93cb4ef4fddc19d93a929ee3091a61409b95a5b508d03ef95669
|
7
|
+
data.tar.gz: 246e802642e5e7ad4c29c71bf92f826e5553f5ec2c163dec42e8f14bbcd6f6f2dd7d459c8721b6e08fae38c36f0bc4f76c3588a29841b07a5acef362571cac03
|
data/.travis.yml
CHANGED
@@ -1,9 +1,6 @@
|
|
1
1
|
---
|
2
|
+
language: ruby
|
2
3
|
rvm:
|
3
|
-
- 2.
|
4
|
-
- 2.
|
5
|
-
|
6
|
-
addons:
|
7
|
-
code_climate:
|
8
|
-
repo_token:
|
9
|
-
secure: "bogVqPmJ2KlI2XK3Ln9Ki8vG08WTvKbKfvYm4ErD1A+2t3vg61utFKxJS8R3P5QKuDDIIX98eQC7r+gPeGEYwT+tDDFMnBsGQZcaeXJCYZQ3qLN36GpnPmpeZ3tTZwop5aT1AmMCF0IllDWYCjcWzeEZan23Eqt5YOyzTGAnr4g="
|
4
|
+
- 2.4
|
5
|
+
- 2.3
|
6
|
+
script: bundle exec rspec
|
data/hobby.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'hobby'
|
7
|
-
spec.version = '0.0.
|
7
|
+
spec.version = '0.0.11'
|
8
8
|
spec.authors = ['Anatoly Chernow']
|
9
9
|
spec.email = ['chertoly@gmail.com']
|
10
10
|
spec.summary = %q{A minimal DSL over rack}
|
data/lib/hobby/router/route.rb
CHANGED
data/lib/hobby/router.rb
CHANGED
data/spec/router_spec.rb
CHANGED
@@ -46,11 +46,11 @@ describe Hobby::Router do
|
|
46
46
|
assert { subject.instance_variable_get(:@routes).include? 'GET/hello/ololo' }
|
47
47
|
end
|
48
48
|
|
49
|
-
it 'dups a route
|
49
|
+
it 'dups a route when requests have params' do
|
50
50
|
router = described_class.new
|
51
|
-
route = router.add_route 'GET', '
|
51
|
+
route = router.add_route 'GET', '/:some_path' do :some_action end
|
52
52
|
|
53
|
-
duped_route = router.route_for env_for '
|
53
|
+
duped_route = router.route_for env_for '/:some_path'
|
54
54
|
|
55
55
|
assert { not route.equal? duped_route }
|
56
56
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hobby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anatoly Chernow
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|