twords 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/templates/twords.rb.erb +20 -0
- data/lib/generators/twords_generator.rb +16 -0
- data/lib/twords/version.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13549284650e46665457d257375a1ddff2fc054a
|
4
|
+
data.tar.gz: b2e3469d525e381573732f1793eaf6aa2352c1ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f484a10f1cc515f8d35bd4995899f21ca2cc9e03c7b0f76632cdebf9e84f0cffeb4d523ad2f3b57886fc0485f6b890f5fe914a23f6e861c18c61fbd491dcc5b3
|
7
|
+
data.tar.gz: 16efb45c835e458f0bf18d101dde07e1d4933904a5d7b1c85c1c5fbfd4c13bb32bd395d383dee1c44661deb4810b280cd4fdc9bee10be513e13feb1ba6e1c945
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<%= "# frozen_string_literal: true" %>
|
2
|
+
|
3
|
+
<%= "Twords.config do |config|" %>
|
4
|
+
<%= "# config.rejects = %w[my us we an w/ because b/c or are this is from" %>
|
5
|
+
<%= "# be on the for to and at our of in rt a with &" %>
|
6
|
+
<%= "# that it by as if was]" %>
|
7
|
+
<%= "#" %>
|
8
|
+
<%= "# config.range = 30" %>
|
9
|
+
<%= "# config.up_to { Time.now }" %>
|
10
|
+
<%= "# config.include_hashtags = false" %>
|
11
|
+
<%= "# config.include_uris = false" %>
|
12
|
+
<%= "# config.include_mentions = false" %>
|
13
|
+
<%= "#" %>
|
14
|
+
<%= "# config.twitter_client do |twitter|" %>
|
15
|
+
<%= "# twitter.consumer_key = ENV['TWITTER_CONSUMER_KEY']" %>
|
16
|
+
<%= "# twitter.consumer_secret = ENV['TWITTER_CONSUMER_SECRET']" %>
|
17
|
+
<%= "# twitter.access_token = ENV['TWITTER_ACCESS_TOKEN']" %>
|
18
|
+
<%= "# twitter.access_token_secret = ENV['TWITTER_ACCESS_TOKEN_SECRET']" %>
|
19
|
+
<%= "# end" %>
|
20
|
+
<%= "end" %>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'rails/generators'
|
4
|
+
|
5
|
+
class Twords
|
6
|
+
module Generators
|
7
|
+
# Generate a configuration template for partials.
|
8
|
+
class TwordsGenerator < Rails::Generators::Base
|
9
|
+
source_root File.expand_path('../templates', __FILE__)
|
10
|
+
|
11
|
+
def copy_config_file
|
12
|
+
template 'twords.rb.erb', 'config/initializers/twords.rb'
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/lib/twords/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twords
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- M. Simon Borg
|
@@ -66,6 +66,8 @@ extra_rdoc_files: []
|
|
66
66
|
files:
|
67
67
|
- LICENSE.txt
|
68
68
|
- README.md
|
69
|
+
- lib/generators/templates/twords.rb.erb
|
70
|
+
- lib/generators/twords_generator.rb
|
69
71
|
- lib/twords.rb
|
70
72
|
- lib/twords/config_accessible.rb
|
71
73
|
- lib/twords/configuration.rb
|