bitmarkable 0.0.2.2 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/bitmarkable.gemspec +1 -2
- data/lib/bitmarkable/{bitmark.rb → bitmarked.rb} +1 -1
- data/lib/bitmarkable.rb +2 -3
- metadata +4 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0de5ecea19e324e2b4f08e60a6eeafdd8bae6f64
|
4
|
+
data.tar.gz: 0cf116a39edf743c4a950c336f60cd9fc4b53e01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 804bd7b98049af317c110bcddd6ba81fa52b39f7f2ece8d7db40fffd50add1c43870c9a63648328129852a556709d4f09aa7c1512b9cd32bb49a332f38b3370a
|
7
|
+
data.tar.gz: d563bcedb819267579f12b9a29f32ab551f78473ab88a21b77c6a6e1329f0951d74b5fea722f47cb038a0d62ab2045bbe6671ee2e3e9885acc7628e218e478a5
|
data/README.md
CHANGED
@@ -29,7 +29,7 @@ end
|
|
29
29
|
Then, include it in your model.
|
30
30
|
|
31
31
|
```ruby
|
32
|
-
include Bitmarkable::
|
32
|
+
include Bitmarkable::Bitmarked
|
33
33
|
bitmark :site_url # optional method/attribute containing the URL to shorten, defaults to :url
|
34
34
|
```
|
35
35
|
|
@@ -37,7 +37,7 @@ The short URL can then be fetched using `instance.bitmark`. The value is stored
|
|
37
37
|
|
38
38
|
If the bitmarkable class responds to `.delay` (e.g. you're using DelayedJob or Sidekiq) then bitmarks will be processed asynchronously.
|
39
39
|
|
40
|
-
If running in Rails and in development or test environments, the bitmark will be set to the full localhost URL and the bitly API will not be called (because it will not shorten localhost URLs). The URL will still be set asynchronously to mimic production behavior.
|
40
|
+
If running in Rails and in development or test environments, the bitmark will be set to the full localhost URL and the bitly API will not be called (because it will not shorten localhost URLs). The URL will still be set asynchronously (if applicable) to mimic production behavior.
|
41
41
|
|
42
42
|
## Contributing
|
43
43
|
|
data/bitmarkable.gemspec
CHANGED
@@ -5,7 +5,7 @@ require 'bitmarkable'
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "bitmarkable"
|
7
7
|
spec.version = Bitmarkable::VERSION
|
8
|
-
spec.required_ruby_version = '>= 1.9.
|
8
|
+
spec.required_ruby_version = '>= 1.9.3'
|
9
9
|
spec.authors = ["Paul Friedman"]
|
10
10
|
spec.email = ["paulrfri@gmail.com"]
|
11
11
|
spec.description = %q{Generate and persist a bitly URL to an ActiveRecord object using Redis.}
|
@@ -22,7 +22,6 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.add_development_dependency "rake"
|
23
23
|
|
24
24
|
spec.add_dependency "activesupport"
|
25
|
-
spec.add_dependency "activerecord"
|
26
25
|
spec.add_dependency "redis-objects"
|
27
26
|
spec.add_dependency "httparty"
|
28
27
|
end
|
data/lib/bitmarkable.rb
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
require "active_support"
|
2
|
-
require "active_record"
|
3
2
|
require "httparty"
|
4
3
|
require "redis-objects"
|
5
4
|
require "bitmarkable/config"
|
6
|
-
require "bitmarkable/
|
5
|
+
require "bitmarkable/bitmarked"
|
7
6
|
require "bitmarkable/bitly"
|
8
7
|
|
9
8
|
module Bitmarkable
|
10
|
-
VERSION = "0.
|
9
|
+
VERSION = "0.1.1"
|
11
10
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bitmarkable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Friedman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-08-
|
11
|
+
date: 2013-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -52,20 +52,6 @@ dependencies:
|
|
52
52
|
- - '>='
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: activerecord
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - '>='
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :runtime
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - '>='
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: redis-objects
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -110,7 +96,7 @@ files:
|
|
110
96
|
- bitmarkable.gemspec
|
111
97
|
- lib/bitmarkable.rb
|
112
98
|
- lib/bitmarkable/bitly.rb
|
113
|
-
- lib/bitmarkable/
|
99
|
+
- lib/bitmarkable/bitmarked.rb
|
114
100
|
- lib/bitmarkable/config.rb
|
115
101
|
homepage: ''
|
116
102
|
licenses:
|
@@ -124,7 +110,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
124
110
|
requirements:
|
125
111
|
- - '>='
|
126
112
|
- !ruby/object:Gem::Version
|
127
|
-
version: 1.9.
|
113
|
+
version: 1.9.3
|
128
114
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
129
115
|
requirements:
|
130
116
|
- - '>='
|