guillotine 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +1 -6
- data/guillotine.gemspec +6 -7
- data/lib/guillotine.rb +1 -1
- data/lib/guillotine/adapters/active_record_adapter.rb +2 -2
- metadata +19 -28
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 8d986d69f6fe67b818ddff9840da0152fb162612
|
4
|
+
data.tar.gz: 88999b8313a3bd1a28e501bebc63cf40d67e839f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 112f961035b5e0fcbcb1ba45ad5a91e062bbc9db84cee403426ad814758fa0313834e48612a92fabd0e16c6f858b1cdc164b83fb729874fdce5d78a1ea43e6a1
|
7
|
+
data.tar.gz: f46526621c883b5f307fa1547994f31cea2ce274b70159a8901db0fc5d646935ddff93e4067f3fea120a7abc027ca182019db55fbfc5ef3c3e76017b225fe782
|
data/Gemfile
CHANGED
@@ -4,17 +4,13 @@ gemspec
|
|
4
4
|
|
5
5
|
gem 'rake'
|
6
6
|
|
7
|
-
group :test do
|
8
|
-
gem 'rack-test'
|
9
|
-
end
|
10
|
-
|
11
7
|
if ENV['TRAVIS']
|
12
8
|
gem 'sequel'
|
13
9
|
gem 'sqlite3'
|
14
10
|
gem 'redis'
|
15
11
|
gem 'mongo'
|
16
12
|
gem 'bson_ext'
|
17
|
-
gem 'riak-client'
|
13
|
+
gem 'riak-client', '~> 0.9.0'
|
18
14
|
end
|
19
15
|
|
20
16
|
# Bundler isn't designed to provide optional functionality like this. You're
|
@@ -35,4 +31,3 @@ end
|
|
35
31
|
#group :sequel, :active_record do
|
36
32
|
# gem 'sqlite3'
|
37
33
|
#end
|
38
|
-
|
data/guillotine.gemspec
CHANGED
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
|
|
13
13
|
## If your rubyforge_project name is different, then edit it and comment out
|
14
14
|
## the sub! line in the Rakefile
|
15
15
|
s.name = 'guillotine'
|
16
|
-
s.version = '1.4.
|
17
|
-
s.date = '
|
16
|
+
s.version = '1.4.1'
|
17
|
+
s.date = '2014-12-23'
|
18
18
|
s.rubyforge_project = 'guillotine'
|
19
19
|
|
20
20
|
## Make sure your summary is short. The description may be as long
|
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
|
|
27
27
|
## a custom homepage, consider using your GitHub URL or the like.
|
28
28
|
s.authors = ["Rick Olson"]
|
29
29
|
s.email = 'technoweenie@gmail.com'
|
30
|
-
s.homepage = 'https://github.com/technoweenie/
|
30
|
+
s.homepage = 'https://github.com/technoweenie/guillotine'
|
31
31
|
|
32
32
|
## This gets added to the $LOAD_PATH so that 'lib/NAME.rb' can be required as
|
33
33
|
## require 'NAME.rb' or'/lib/NAME/file.rb' can be as require 'NAME/file.rb'
|
@@ -35,12 +35,12 @@ Gem::Specification.new do |s|
|
|
35
35
|
|
36
36
|
## List your runtime dependencies here. Runtime dependencies are those
|
37
37
|
## that are needed for an end user to actually USE your code.
|
38
|
-
s.add_dependency('sinatra', "~> 1.
|
39
|
-
s.add_dependency('addressable', "~> 2.
|
38
|
+
s.add_dependency('sinatra', "~> 1.4.0")
|
39
|
+
s.add_dependency('addressable', "~> 2.3.0")
|
40
40
|
|
41
41
|
## List your development dependencies here. Development dependencies are
|
42
42
|
## those that are only needed during development
|
43
|
-
s.add_development_dependency('rack-test')
|
43
|
+
s.add_development_dependency('rack-test', '~> 0.6.0')
|
44
44
|
|
45
45
|
## Leave this section as-is. It will be automatically generated from the
|
46
46
|
## contents of your Git repository via the gemspec task. DO NOT REMOVE
|
@@ -86,4 +86,3 @@ Gem::Specification.new do |s|
|
|
86
86
|
## matches what you actually use.
|
87
87
|
s.test_files = s.files.select { |path| path =~ /^test\/.*_test\.rb/ }
|
88
88
|
end
|
89
|
-
|
data/lib/guillotine.rb
CHANGED
@@ -4,8 +4,8 @@ module Guillotine
|
|
4
4
|
class ActiveRecordAdapter < Adapter
|
5
5
|
class Url < ActiveRecord::Base; end
|
6
6
|
|
7
|
-
def initialize(config)
|
8
|
-
Url.establish_connection config
|
7
|
+
def initialize(config=nil)
|
8
|
+
Url.establish_connection config if config
|
9
9
|
end
|
10
10
|
|
11
11
|
# Public: Stores the shortened version of a URL.
|
metadata
CHANGED
@@ -1,64 +1,57 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guillotine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
5
|
-
prerelease:
|
4
|
+
version: 1.4.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Rick Olson
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-12-23 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: sinatra
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- - ~>
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: 1.
|
19
|
+
version: 1.4.0
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- - ~>
|
24
|
+
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: 1.
|
26
|
+
version: 1.4.0
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: addressable
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- - ~>
|
31
|
+
- - "~>"
|
36
32
|
- !ruby/object:Gem::Version
|
37
|
-
version: 2.
|
33
|
+
version: 2.3.0
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- - ~>
|
38
|
+
- - "~>"
|
44
39
|
- !ruby/object:Gem::Version
|
45
|
-
version: 2.
|
40
|
+
version: 2.3.0
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: rack-test
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - "~>"
|
52
46
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
47
|
+
version: 0.6.0
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - "~>"
|
60
53
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
54
|
+
version: 0.6.0
|
62
55
|
description: Adaptable private URL shortener
|
63
56
|
email: technoweenie@gmail.com
|
64
57
|
executables: []
|
@@ -97,27 +90,26 @@ files:
|
|
97
90
|
- test/riak_adapter_test.rb
|
98
91
|
- test/sequel_adapter_test.rb
|
99
92
|
- test/service_test.rb
|
100
|
-
homepage: https://github.com/technoweenie/
|
93
|
+
homepage: https://github.com/technoweenie/guillotine
|
101
94
|
licenses: []
|
95
|
+
metadata: {}
|
102
96
|
post_install_message:
|
103
97
|
rdoc_options: []
|
104
98
|
require_paths:
|
105
99
|
- lib
|
106
100
|
required_ruby_version: !ruby/object:Gem::Requirement
|
107
|
-
none: false
|
108
101
|
requirements:
|
109
|
-
- -
|
102
|
+
- - ">="
|
110
103
|
- !ruby/object:Gem::Version
|
111
104
|
version: '0'
|
112
105
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
106
|
requirements:
|
115
|
-
- -
|
107
|
+
- - ">="
|
116
108
|
- !ruby/object:Gem::Version
|
117
109
|
version: '0'
|
118
110
|
requirements: []
|
119
111
|
rubyforge_project: guillotine
|
120
|
-
rubygems_version:
|
112
|
+
rubygems_version: 2.2.2
|
121
113
|
signing_key:
|
122
114
|
specification_version: 2
|
123
115
|
summary: Adaptable private URL shortener
|
@@ -133,4 +125,3 @@ test_files:
|
|
133
125
|
- test/riak_adapter_test.rb
|
134
126
|
- test/sequel_adapter_test.rb
|
135
127
|
- test/service_test.rb
|
136
|
-
has_rdoc:
|