rsocialize 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c501b6b895d6b9338c6ac517f42f810f04d62f3e
4
+ data.tar.gz: a142afe8650054a6d721728593fed6a98711bf31
5
+ SHA512:
6
+ metadata.gz: 05f78152ed2a6e42715a760ab8a94c3178f6197ae792f3ed584501d2f5bb059a98b97f7a833dfd2207bc9783d714edeecf54cdc5123e01e79260ab082c279b9b
7
+ data.tar.gz: fde3958e32b71f694f5b0fb3c714956fbec6d30f0d3e129c729816a39aecba225c00221ca4764b35786fe592e9cbf3d42b59b5ef473df43e3d5bb80c339239f0
data/.gitignore ADDED
@@ -0,0 +1,18 @@
1
+ *.rbc
2
+ *.sassc
3
+ .sass-cache
4
+ capybara-*.html
5
+ .rspec
6
+ .rvmrc
7
+ /.bundle
8
+ /vendor/bundle
9
+ /log/*
10
+ /tmp/*
11
+ /db/*.sqlite3
12
+ /public/system/*
13
+ /coverage/
14
+ /spec/tmp/*
15
+ **.orig
16
+ rerun.txt
17
+ pickle-email-*.html
18
+ .project
data/README.md CHANGED
@@ -1,3 +1,10 @@
1
+ [![Code Climate](https://codeclimate.com/github/treble37/rsocialize.png)](https://codeclimate.com/github/treble37/rsocialize) [![Code Climate](https://codeclimate.com/github/treble37/coverage.png)](https://codeclimate.com/github/treble37/rsocialize)
2
+
3
+ ##Help contribute to the development & maintenance of this gem via GitTip:
4
+ [![Fund me on Gittip](https://www.gittip.com/assets/7.0.8/logo.png)](https://www.gittip.com/treble37/)
5
+
6
+ Hey Internet, I make most of my money during the day by working just like everyone else, so seeing a donation really helps motivate me to keep improving this gem. Even if you don't donate, please feel free to leave me feedback / feature requests / issues via the Github issues.
7
+
1
8
  # Rsocialize Description
2
9
 
3
10
  This is a ruby on rails gem that enables easy installation of the [sharrre](http://sharrre.com/) jQuery plugin. It provides a simple way to add social media buttons to your rails application. No more digging through APIs or copying and pasting code from developer docs just to install social media buttons for your rails application.
@@ -6,18 +13,31 @@ This is a ruby on rails gem that enables easy installation of the [sharrre](http
6
13
 
7
14
  This gem is ideal for one-person (or severely time-pressed) startups who are time-limited and just need to get some social media buttons installed quickly, because they're really busy working on so many other aspects of deployment.
8
15
 
9
- #Rsocialize v0.0.2 - What's working?
16
+ #Rsocialize v0.0.4 - What's working?
10
17
 
11
18
  This is a "beta" release. There's been some minimal testing with rspec. In the current version, I have examples 1,2,3,5 and 6 from the sharrre plugin working in Rails. Users can use their own custom css and specify their own sharrre options to use different buttons than the ones given in examples 1,2,3,5,6.
12
19
 
13
20
  #Rails compatibility
14
21
 
15
- I wrote this gem and tested it with Rails 3.2.8. It takes advantage of the asset pipeline. I'm thinking about making it compatible with other versions of rails, so if you're interested in this happening, let me know via the issue queue.
22
+ ##Rails 3.x
23
+
24
+ I initially wrote this gem and tested it with Rails 3.2.8. It takes advantage of the asset pipeline. Now that Rails 4.x is out, a few things that worked with Rails 3.2.x are incompatible and so I have moved the Rails 3 compatible code to the rails-3.x branch.
25
+
26
+ ##Rails 4.x
27
+ A few dependencies were out of date - namely, activesupport, nokogiri, and actionpack. Also, there was an issue with the way the route was specified in that Rails 4 apparently no longer allows [controller names to be capitalized in the routes file](https://github.com/rails/rails/blob/v4.0.0/actionpack/lib/action_dispatch/routing/mapper.rb#L237)
28
+
29
+ The master branch always incorporates the latest branch updates (e.g., so if rails-4.1-stable is the latest branch, then master mirrors rails-4.1-stable)
16
30
 
17
31
  ## Installation
18
32
 
19
33
  Add this line to your application's Gemfile:
20
34
 
35
+ ###For Rails 3
36
+
37
+ gem 'rsocialize', :git => "git://github.com//treble37/rsocialize.git", :branch => "rails-3.x"
38
+
39
+ ###For Rails 4
40
+
21
41
  gem 'rsocialize'
22
42
 
23
43
  And then execute:
@@ -120,3 +140,7 @@ Note that the argument "example2" refers to the "example2css.txt" file in the "a
120
140
  ##Resources Used:
121
141
  1. [Javascript compression tool http://jscompress.com/](http://jscompress.com/)
122
142
  2. [Sharrre home page](http://sharrre.com/)
143
+
144
+
145
+ [![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/treble37/rsocialize/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
146
+
@@ -26,7 +26,7 @@ module Rsocialize
26
26
  def modify_routes
27
27
  line = "::Application.routes.draw do"
28
28
  gsub_file 'config/routes.rb', /(#{Regexp.escape(line)})/mi do |match|
29
- %Q{#{match}\n match '/sharrre' => 'Rsocialize#sharrre'}
29
+ %Q{#{match}\n match '/sharrre' => 'rsocialize#sharrre', via: :get}
30
30
  end
31
31
  end
32
32
  end #end class InstallGenerator
@@ -17,7 +17,7 @@ module Rsocialize
17
17
  remove_file 'app/assets/images'
18
18
  end
19
19
  def unmodify_routes
20
- line = %Q{match '/sharrre' => 'Rsocialize#sharrre'}
20
+ line = %Q{match '/sharrre' => 'rsocialize#sharrre', via: :get}
21
21
  gsub_file 'config/routes.rb', /(#{Regexp.escape(line)})/mi,''
22
22
  end
23
23
  end #class UninstallGenerator
@@ -1,3 +1,3 @@
1
1
  module Rsocialize
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
data/rsocialize.gemspec CHANGED
@@ -19,10 +19,10 @@ Gem::Specification.new do |gem|
19
19
  gem.require_paths = ["lib"]
20
20
  gem.version = Rsocialize::VERSION
21
21
 
22
- gem.add_development_dependency "rspec","~>2.11.0"
23
- gem.add_development_dependency "rake","~>0.9.2.2"
22
+ gem.add_development_dependency "rspec",">=2.11.0"
23
+ gem.add_development_dependency "rake",">=0.9.2.2"
24
24
  gem.add_runtime_dependency "curb", "~>0.8.2"
25
- gem.add_runtime_dependency "activesupport", "~>3.2.8"
26
- gem.add_runtime_dependency "nokogiri", "~>1.5.5"
27
- gem.add_runtime_dependency "actionpack", "~>3.2.8"
25
+ gem.add_runtime_dependency "activesupport", ">= 3.2.8"
26
+ gem.add_runtime_dependency "nokogiri", ">= 1.5.5"
27
+ gem.add_runtime_dependency "actionpack", ">= 3.2.8"
28
28
  end
metadata CHANGED
@@ -1,110 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsocialize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
5
- prerelease:
4
+ version: 0.0.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - Bruce Park
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-12-05 00:00:00.000000000 Z
11
+ date: 2014-06-15 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rspec
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: 2.11.0
22
20
  type: :development
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
26
  version: 2.11.0
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ~>
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: 0.9.2.2
38
34
  type: :development
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
40
  version: 0.9.2.2
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: curb
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ~>
45
+ - - "~>"
52
46
  - !ruby/object:Gem::Version
53
47
  version: 0.8.2
54
48
  type: :runtime
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
54
  version: 0.8.2
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: activesupport
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ~>
59
+ - - ">="
68
60
  - !ruby/object:Gem::Version
69
61
  version: 3.2.8
70
62
  type: :runtime
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ~>
66
+ - - ">="
76
67
  - !ruby/object:Gem::Version
77
68
  version: 3.2.8
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: nokogiri
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ~>
73
+ - - ">="
84
74
  - !ruby/object:Gem::Version
85
75
  version: 1.5.5
86
76
  type: :runtime
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ~>
80
+ - - ">="
92
81
  - !ruby/object:Gem::Version
93
82
  version: 1.5.5
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: actionpack
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
- - - ~>
87
+ - - ">="
100
88
  - !ruby/object:Gem::Version
101
89
  version: 3.2.8
102
90
  type: :runtime
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
- - - ~>
94
+ - - ">="
108
95
  - !ruby/object:Gem::Version
109
96
  version: 3.2.8
110
97
  description: Provides a simple way to add social media buttons to your rails application
@@ -114,9 +101,7 @@ executables: []
114
101
  extensions: []
115
102
  extra_rdoc_files: []
116
103
  files:
117
- - .rvmrc
118
- - Gemfile
119
- - Gemfile.lock
104
+ - ".gitignore"
120
105
  - LICENSE
121
106
  - README.md
122
107
  - Rakefile
@@ -142,27 +127,26 @@ files:
142
127
  - spec/spec_helper.rb
143
128
  homepage: ''
144
129
  licenses: []
130
+ metadata: {}
145
131
  post_install_message:
146
132
  rdoc_options: []
147
133
  require_paths:
148
134
  - lib
149
135
  required_ruby_version: !ruby/object:Gem::Requirement
150
- none: false
151
136
  requirements:
152
- - - ! '>='
137
+ - - ">="
153
138
  - !ruby/object:Gem::Version
154
139
  version: '0'
155
140
  required_rubygems_version: !ruby/object:Gem::Requirement
156
- none: false
157
141
  requirements:
158
- - - ! '>='
142
+ - - ">="
159
143
  - !ruby/object:Gem::Version
160
144
  version: '0'
161
145
  requirements: []
162
146
  rubyforge_project:
163
- rubygems_version: 1.8.24
147
+ rubygems_version: 2.2.2
164
148
  signing_key:
165
- specification_version: 3
149
+ specification_version: 4
166
150
  summary: Provides a simple way to add social media buttons to your rails application. It's
167
151
  a ruby wrapper for the sharrre jQuery plugin.'
168
152
  test_files: []
data/.rvmrc DELETED
@@ -1,52 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- # This is an RVM Project .rvmrc file, used to automatically load the ruby
4
- # development environment upon cd'ing into the directory
5
-
6
- # First we specify our desired <ruby>[@<gemset>], the @gemset name is optional,
7
- # Only full ruby name is supported here, for short names use:
8
- # echo "rvm use 1.9.3" > .rvmrc
9
- environment_id="ruby-1.9.3-p194@rsoc326"
10
-
11
- # Uncomment the following lines if you want to verify rvm version per project
12
- # rvmrc_rvm_version="1.14.2 (stable)" # 1.10.1 seams as a safe start
13
- # eval "$(echo ${rvm_version}.${rvmrc_rvm_version} | awk -F. '{print "[[ "$1*65536+$2*256+$3" -ge "$4*65536+$5*256+$6" ]]"}' )" || {
14
- # echo "This .rvmrc file requires at least RVM ${rvmrc_rvm_version}, aborting loading."
15
- # return 1
16
- # }
17
-
18
- # First we attempt to load the desired environment directly from the environment
19
- # file. This is very fast and efficient compared to running through the entire
20
- # CLI and selector. If you want feedback on which environment was used then
21
- # insert the word 'use' after --create as this triggers verbose mode.
22
- if [[ -d "${rvm_path:-$HOME/.rvm}/environments"
23
- && -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]]
24
- then
25
- \. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
26
- [[ -s "${rvm_path:-$HOME/.rvm}/hooks/after_use" ]] &&
27
- \. "${rvm_path:-$HOME/.rvm}/hooks/after_use" || true
28
- if [[ $- == *i* ]] # check for interactive shells
29
- then echo "Using: $(tput setaf 2)$GEM_HOME$(tput sgr0)" # show the user the ruby and gemset they are using in green
30
- else echo "Using: $GEM_HOME" # don't use colors in non-interactive shells
31
- fi
32
- else
33
- # If the environment file has not yet been created, use the RVM CLI to select.
34
- rvm --create use "$environment_id" || {
35
- echo "Failed to create RVM environment '${environment_id}'."
36
- return 1
37
- }
38
- fi
39
-
40
- # If you use bundler, this might be useful to you:
41
- # if [[ -s Gemfile ]] && {
42
- # ! builtin command -v bundle >/dev/null ||
43
- # builtin command -v bundle | GREP_OPTIONS= \grep $rvm_path/bin/bundle >/dev/null
44
- # }
45
- # then
46
- # printf "%b" "The rubygem 'bundler' is not installed. Installing it now.\n"
47
- # gem install bundler
48
- # fi
49
- # if [[ -s Gemfile ]] && builtin command -v bundle >/dev/null
50
- # then
51
- # bundle install | GREP_OPTIONS= \grep -vE '^Using|Your bundle is complete'
52
- # fi
data/Gemfile DELETED
@@ -1,11 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in rsocialize.gemspec
4
- gemspec
5
- gem 'sinatra', '~>1.3.3'
6
- gem 'curb', '~>0.8.2'
7
- gem 'activesupport', '~>3.2.8'
8
- gem 'nokogiri', '~>1.5.5'
9
- gem 'actionpack', '~>3.2.8'
10
- gem 'rake','~>0.9.2.2'
11
- gem 'gemcutter', '~>0.7.1' #needed to add yank command to rubygems command list
data/Gemfile.lock DELETED
@@ -1,77 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- rsocialize (0.0.1)
5
- actionpack (~> 3.2.8)
6
- activesupport (~> 3.2.8)
7
- curb (~> 0.8.2)
8
- nokogiri (~> 1.5.5)
9
-
10
- GEM
11
- remote: https://rubygems.org/
12
- specs:
13
- actionpack (3.2.8)
14
- activemodel (= 3.2.8)
15
- activesupport (= 3.2.8)
16
- builder (~> 3.0.0)
17
- erubis (~> 2.7.0)
18
- journey (~> 1.0.4)
19
- rack (~> 1.4.0)
20
- rack-cache (~> 1.2)
21
- rack-test (~> 0.6.1)
22
- sprockets (~> 2.1.3)
23
- activemodel (3.2.8)
24
- activesupport (= 3.2.8)
25
- builder (~> 3.0.0)
26
- activesupport (3.2.8)
27
- i18n (~> 0.6)
28
- multi_json (~> 1.0)
29
- builder (3.0.4)
30
- curb (0.8.2)
31
- diff-lcs (1.1.3)
32
- erubis (2.7.0)
33
- gemcutter (0.7.1)
34
- hike (1.2.1)
35
- i18n (0.6.1)
36
- journey (1.0.4)
37
- multi_json (1.3.7)
38
- nokogiri (1.5.5)
39
- rack (1.4.1)
40
- rack-cache (1.2)
41
- rack (>= 0.4)
42
- rack-protection (1.2.0)
43
- rack
44
- rack-test (0.6.2)
45
- rack (>= 1.0)
46
- rake (0.9.2.2)
47
- rspec (2.11.0)
48
- rspec-core (~> 2.11.0)
49
- rspec-expectations (~> 2.11.0)
50
- rspec-mocks (~> 2.11.0)
51
- rspec-core (2.11.1)
52
- rspec-expectations (2.11.3)
53
- diff-lcs (~> 1.1.3)
54
- rspec-mocks (2.11.3)
55
- sinatra (1.3.3)
56
- rack (~> 1.3, >= 1.3.6)
57
- rack-protection (~> 1.2)
58
- tilt (~> 1.3, >= 1.3.3)
59
- sprockets (2.1.3)
60
- hike (~> 1.2)
61
- rack (~> 1.0)
62
- tilt (~> 1.1, != 1.3.0)
63
- tilt (1.3.3)
64
-
65
- PLATFORMS
66
- ruby
67
-
68
- DEPENDENCIES
69
- actionpack (~> 3.2.8)
70
- activesupport (~> 3.2.8)
71
- curb (~> 0.8.2)
72
- gemcutter
73
- nokogiri (~> 1.5.5)
74
- rake (~> 0.9.2.2)
75
- rsocialize!
76
- rspec (~> 2.11.0)
77
- sinatra (~> 1.3.3)