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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b0bec79f9601e2054b1fd014cd9fdf1de43c2d0b
4
- data.tar.gz: 677a4e1bf013f1c3d4c7b3ef4b4290a68f8cb82e
3
+ metadata.gz: 0de5ecea19e324e2b4f08e60a6eeafdd8bae6f64
4
+ data.tar.gz: 0cf116a39edf743c4a950c336f60cd9fc4b53e01
5
5
  SHA512:
6
- metadata.gz: 48bc55c4eb9f963e1c8ad26cad06eaf701366a9c426b63e100c5e3e847a40016af4bbb61949730ce64547788bc5c08c30ab92c35858aa0485a3ed257f2bce05e
7
- data.tar.gz: 1f139cddb7c2a0309fd33bae936aa40b0faf23e3d6f4ea9e38a3c619a66e925792e0e3c5822bd04147f73a204b8fac26176f89c9d0548d3204910a81f219ccf0
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::Bitmark
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.2'
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
@@ -1,5 +1,5 @@
1
1
  module Bitmarkable
2
- module Bitmark
2
+ module Bitmarked
3
3
  extend ActiveSupport::Concern
4
4
 
5
5
  included do
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/bitmark"
5
+ require "bitmarkable/bitmarked"
7
6
  require "bitmarkable/bitly"
8
7
 
9
8
  module Bitmarkable
10
- VERSION = "0.0.2.2"
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.0.2.2
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-22 00:00:00.000000000 Z
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/bitmark.rb
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.2
113
+ version: 1.9.3
128
114
  required_rubygems_version: !ruby/object:Gem::Requirement
129
115
  requirements:
130
116
  - - '>='