just_share 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/generators/just_share/install_generator.rb +16 -0
- data/lib/generators/templates/just_share.rb +12 -0
- data/lib/just_share/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 04e6bd8d049aecd987c00333f4bf6e17ced6b23a
|
|
4
|
+
data.tar.gz: b139fae9d4fe5101596f79d6e6506994b4a4c0f3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 48dcec1dc3e7e03a3b75014685b195a490e2f8703088c938b81260dac415ec672b6b32d00a7491ab5db52fc620eae8ee982441e0db63995adf940d772dadcee1
|
|
7
|
+
data.tar.gz: 021f7d99b485fb81e8b70dd17efc96c4742d15ec45f1c3b311b0ec29ed2702e0a9ce5a5dc6a7ae5eafcdd174b617f9b8cff568a805e9b91c3ed64ebd64fda562
|
data/Gemfile.lock
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
require 'colorize'
|
|
2
|
+
module JustShare
|
|
3
|
+
module Generators
|
|
4
|
+
class InstallGenerator < Rails::Generators::Base
|
|
5
|
+
source_root File.expand_path("../../templates", __FILE__)
|
|
6
|
+
|
|
7
|
+
desc "It automatically create it JustShare initializer rails app config"
|
|
8
|
+
|
|
9
|
+
def copy_initializer
|
|
10
|
+
template "just_share.rb", "config/initializers/just_share.rb"
|
|
11
|
+
puts 'Check your config/initializers/just_share.rb & read it comments'.colorize(:light_yellow)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
@via=#TODO your Username on the Twitter
|
|
3
|
+
@link=#TODO your link to be shared
|
|
4
|
+
@title=#TODO your message title
|
|
5
|
+
@message=#TODO your message on the share
|
|
6
|
+
@hash_tags=#TODO your HashTags references
|
|
7
|
+
|
|
8
|
+
JustShare.via=@via
|
|
9
|
+
JustShare.link=CGI::unescape(@link)
|
|
10
|
+
JustShare.title=@title
|
|
11
|
+
JustShare.message=@message
|
|
12
|
+
JustShare.hash_tags=@hash_tags
|
data/lib/just_share/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: just_share
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ilton Garcia
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-01-
|
|
11
|
+
date: 2015-01-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -179,6 +179,8 @@ files:
|
|
|
179
179
|
- README.md
|
|
180
180
|
- Rakefile
|
|
181
181
|
- just_share.gemspec
|
|
182
|
+
- lib/generators/just_share/install_generator.rb
|
|
183
|
+
- lib/generators/templates/just_share.rb
|
|
182
184
|
- lib/just_share.rb
|
|
183
185
|
- lib/just_share/blogger.rb
|
|
184
186
|
- lib/just_share/chiq.rb
|