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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5c34c3b4415dc5107328e127712381efc0a84562
4
- data.tar.gz: d90029ae4175a52dd886ac459d7023ac5aa1cd9a
3
+ metadata.gz: 13549284650e46665457d257375a1ddff2fc054a
4
+ data.tar.gz: b2e3469d525e381573732f1793eaf6aa2352c1ad
5
5
  SHA512:
6
- metadata.gz: f7eada355aa2b6c1aaf30fcff26ca51bab3626ef05ed6dea0d40ca5431426787308cc04050290564f0efc29b31b740eb348edd212e04c71d0f2f5201b83b3480
7
- data.tar.gz: 6b42cffee275451b7cf64d73003ca4d418b7bb9ba4a970de833407450c6f9076bceefb1d264990420054e3fd9cffd44737872e002e6ee256247dfb66fa4aedde
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 &amp;" %>
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
@@ -2,5 +2,5 @@
2
2
 
3
3
  class Twords
4
4
  # The current gem version
5
- VERSION = '0.2.3'.freeze
5
+ VERSION = '0.2.4'.freeze
6
6
  end
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.3
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