tweet_validator 0.0.1.beta1 → 0.0.1.beta2

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: cfaffe1b3280b525266cd7248b39dc4833d0048f
4
- data.tar.gz: 1c7ee20c219e1d3cc52354b36362e5ec885326cb
3
+ metadata.gz: 5241377ce8d8c173de0aebc7645874d71a50e674
4
+ data.tar.gz: c81d248a1cb52f354f6439e590cd8584fa06e082
5
5
  SHA512:
6
- metadata.gz: 1d512477379974b4b6e29c01361a9a614274b637bfa9d2eb7a050d4ba4052f41584df2859820bdfbe3edac7813b67d2dec7644cc6981d543ada718eafcbf7cad
7
- data.tar.gz: 5f33d9113b8b71a1b34ef02104ae7f9d443b30c1ebe5bcf3f76f0c40c997796f90ebbcd6629da71097d5623f847a17852ebc227c465549c73809bb652a464e1c
6
+ metadata.gz: 83e56268a7442893cf796ce731ac85b94960b0c1f31721bcada22dd6ec8cfa41a9679e489dc1ef74a94e0769c83d9ee873ff3dd43dbac5e8559809cffeac0e52
7
+ data.tar.gz: 0972ea75aa958871e9b6022f3b766632c19bfa817149fbdc2dd27face17ca570601f76ca4e795dad80f7ee0c2c0208d85de3043a48d331fa7c4a968541e92157
data/README.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  tweet length check validator
4
4
 
5
+ [![Gem Version](https://badge.fury.io/rb/tweet_validator.svg)](http://badge.fury.io/rb/tweet_validator)
5
6
  [![Build Status](https://travis-ci.org/sue445/tweet_validator.png?branch=master)](https://travis-ci.org/sue445/tweet_validator)
6
7
  [![Dependency Status](https://gemnasium.com/sue445/tweet_validator.svg)](https://gemnasium.com/sue445/tweet_validator)
7
8
  [![Code Climate](https://codeclimate.com/github/sue445/tweet_validator/badges/gpa.svg)](https://codeclimate.com/github/sue445/tweet_validator)
@@ -1,5 +1,6 @@
1
1
  require "tweet_validator/version"
2
2
  require "tweet_validator/tweet_length_validator"
3
+ require 'tweet_validator/railtie' if defined?(Rails)
3
4
 
4
5
  module TweetValidator
5
6
  # Your code goes here...
@@ -0,0 +1,10 @@
1
+ module TweetValidator
2
+ class Railtie < Rails::Railtie
3
+ # rails loading hook
4
+ ActiveSupport.on_load(:before_initialize) do
5
+ ActiveSupport.on_load(:active_record) do
6
+ ActiveRecord::Base.send(:include, TweetValidator)
7
+ end
8
+ end
9
+ end
10
+ end
@@ -1,3 +1,3 @@
1
1
  module TweetValidator
2
- VERSION = "0.0.1.beta1"
2
+ VERSION = "0.0.1.beta2"
3
3
  end
@@ -23,6 +23,7 @@ Gem::Specification.new do |spec|
23
23
  spec.add_development_dependency "bundler", "~> 1.7"
24
24
  spec.add_development_dependency "codeclimate-test-reporter"
25
25
  spec.add_development_dependency "coveralls"
26
+ spec.add_development_dependency "railties"
26
27
  spec.add_development_dependency "rake", "~> 10.0"
27
28
  spec.add_development_dependency "rspec", "~> 3.1.0"
28
29
  spec.add_development_dependency "rspec-parameterized"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tweet_validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.beta1
4
+ version: 0.0.1.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - sueyoshi_go
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-03 00:00:00.000000000 Z
11
+ date: 2014-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: railties
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: rake
71
85
  requirement: !ruby/object:Gem::Requirement
@@ -125,6 +139,7 @@ files:
125
139
  - README.md
126
140
  - Rakefile
127
141
  - lib/tweet_validator.rb
142
+ - lib/tweet_validator/railtie.rb
128
143
  - lib/tweet_validator/tweet_length_validator.rb
129
144
  - lib/tweet_validator/version.rb
130
145
  - spec/spec_helper.rb