talk_like_a_pirate 0.1.0 → 0.2.0

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: db932721c1e5caeccac58345b7379689344ef469
4
- data.tar.gz: d2dd475fec4e4ed4a7728e0996f0ed236f7f56bf
3
+ metadata.gz: 8889d472451363ee0bf6512c4b553f7930578c85
4
+ data.tar.gz: 1482daf20f68724ff9970cbd2c43f41a17806f61
5
5
  SHA512:
6
- metadata.gz: 15454681ef634d24030283d78ca7078c0c33298c261a79983641c29b32ab3129794164b3ac14e518e2e9e7c56ac23c3c618861ffa8367bfed4b01548f2635d6b
7
- data.tar.gz: 4cd7aa50c037cacf5c4de9fae228d28d381c63528afeb461430e4f319f606f0ba7a3d19f3155a7eb27a28b53d3e5af3366f3879ff31fb0556abf8c2eb7cd3241
6
+ metadata.gz: ee40a7bcd68a17fe95d9176163cb11b456c08cf3d9cd4241a34e5257c9decef44b6c87ef9097bb8897cbbb21b19042f49cee8fd39b7490fed879384130c427e0
7
+ data.tar.gz: 41256b674a9594ad736ccc4229fb2f0212a34f77c32d36aa06fcad9c1afaacc7043f11be42f5a32fec30bc3ac398a88217eb1016e2ad439161774ec727017763
@@ -0,0 +1,4 @@
1
+ *.gemfile.lock
2
+ gemfiles/*
3
+ log
4
+ *.gem
@@ -0,0 +1,27 @@
1
+ appraise "rails-3-2" do
2
+ gem "activesupport", "~> 3.2.0"
3
+ end
4
+
5
+ appraise "rails-4-0" do
6
+ gem "activesupport", "~> 4.0.0"
7
+ end
8
+
9
+ appraise "rails-4-1" do
10
+ gem "activesupport", "~> 4.1.0"
11
+ end
12
+
13
+ appraise "rails-4-2" do
14
+ gem "activesupport", "~> 4.2.0"
15
+ end
16
+
17
+ appraise "rails-5-0" do
18
+ gem "activesupport", "~> 5.0.0"
19
+ end
20
+
21
+ appraise "rails-5-1" do
22
+ gem "activesupport", "~> 5.1.0"
23
+ end
24
+
25
+ appraise "rails-5-2" do
26
+ gem "activesupport", "~> 5.2.0"
27
+ end
data/Gemfile CHANGED
@@ -1,7 +1,2 @@
1
1
  source 'https://rubygems.org'
2
- group :test do
3
- gem "rspec"
4
- gem "rake"
5
- gem 'activesupport', '~> 3.0.0', :require => false
6
- gem 'i18n'#, :require => false
7
- end
2
+ gemspec
@@ -1,24 +1,55 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ talk_like_a_pirate (0.2.0)
5
+ activesupport (>= 3.0.0, < 6.0.0)
6
+ i18n
7
+
1
8
  GEM
2
9
  remote: https://rubygems.org/
3
10
  specs:
4
- activesupport (3.0.20)
5
- diff-lcs (1.2.4)
6
- i18n (0.6.4)
11
+ activesupport (5.2.1)
12
+ concurrent-ruby (~> 1.0, >= 1.0.2)
13
+ i18n (>= 0.7, < 2)
14
+ minitest (~> 5.1)
15
+ tzinfo (~> 1.1)
16
+ appraisal (2.2.0)
17
+ bundler
18
+ rake
19
+ thor (>= 0.14.0)
20
+ concurrent-ruby (1.0.5)
21
+ diff-lcs (1.3)
22
+ i18n (1.1.0)
23
+ concurrent-ruby (~> 1.0)
24
+ minitest (5.11.3)
7
25
  rake (10.0.4)
8
- rspec (2.13.0)
9
- rspec-core (~> 2.13.0)
10
- rspec-expectations (~> 2.13.0)
11
- rspec-mocks (~> 2.13.0)
12
- rspec-core (2.13.1)
13
- rspec-expectations (2.13.0)
14
- diff-lcs (>= 1.1.3, < 2.0)
15
- rspec-mocks (2.13.1)
26
+ rspec (3.8.0)
27
+ rspec-core (~> 3.8.0)
28
+ rspec-expectations (~> 3.8.0)
29
+ rspec-mocks (~> 3.8.0)
30
+ rspec-core (3.8.0)
31
+ rspec-support (~> 3.8.0)
32
+ rspec-expectations (3.8.1)
33
+ diff-lcs (>= 1.2.0, < 2.0)
34
+ rspec-support (~> 3.8.0)
35
+ rspec-mocks (3.8.0)
36
+ diff-lcs (>= 1.2.0, < 2.0)
37
+ rspec-support (~> 3.8.0)
38
+ rspec-support (3.8.0)
39
+ thor (0.20.0)
40
+ thread_safe (0.3.6)
41
+ tzinfo (1.2.5)
42
+ thread_safe (~> 0.1)
16
43
 
17
44
  PLATFORMS
18
45
  ruby
19
46
 
20
47
  DEPENDENCIES
21
- activesupport (~> 3.0.0)
22
- i18n
23
- rake
24
- rspec
48
+ appraisal (~> 2.2)
49
+ bundler (~> 1.9)
50
+ rake (~> 10.0)
51
+ rspec (~> 3)
52
+ talk_like_a_pirate!
53
+
54
+ BUNDLED WITH
55
+ 1.16.2
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2013 Steve Hodges
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md CHANGED
@@ -1,13 +1,14 @@
1
1
  Ahoy, mateys!
2
2
  =====
3
3
 
4
- Delight yer users with the flavor of the high seas!
4
+ Translate English to Pirate on the fly! Delight yer users with the flavor of the high seas!
5
5
 
6
- Add a pirate translation layer to your Ruby or Rails app! Talk, like a Pirate!
6
+ Plus, add a pirate translation layer to your Ruby or Rails app! Talk, like a Pirate!
7
7
 
8
- Try the gem out on [Ahoy Mat.ee](http://www.ahoymat.ee "Translate web pages into pirate"), which allows you to translate any page on the public internets.
8
+ This gem has been functional tested against a public domain version of The Bible (which may or may not be available as an e-book on Amazon.com...)
9
+
10
+ [![Gem Version](https://badge.fury.io/rb/talk_like_a_pirate.svg)](https://badge.fury.io/rb/talk_like_a_pirate)
9
11
 
10
- Translate English to Pirate on the fly!
11
12
  ----
12
13
 
13
14
  TalkLikeAPirate.translate("Today is a good day to die")
@@ -25,12 +26,16 @@ It'll iterate through all of your en.yml files in that location and build a pira
25
26
 
26
27
  Config
27
28
  ----
28
- The pirate dictionary is fairly generic. You my have domain-specific lingo you think would be fucking hillarious in pirate. So, add on to the dictionary!
29
+ The pirate dictionary is fairly generic. You may have domain-specific lingo you think would be hillarious in pirate. So, add on to the dictionary!
29
30
 
30
31
  Add a config file at
31
32
 
33
+ * Rails:
32
34
  config/pirate_booty.yml
33
35
 
36
+ * Without Rails
37
+ Specify the path to your YAML file in ENV['TALK_LIKE_A_PIRATE_CONFIG_PATH']
38
+
34
39
  And format it like so (all keys are optional):
35
40
 
36
41
  locale: pirate # This defaults to arr, but you can override it if you'd prefer a different locale string!
@@ -52,15 +57,24 @@ If you want more sophistication in your translations, you can add the Rails Acti
52
57
  require "active_support"
53
58
  require "active_support/inflector"
54
59
 
55
- And, due to dependency weirdness in ActiveSupport, you'll also need the i18n gem installed. So, in your Gemfile:
56
-
57
- gem 'activesupport', '~> 3.0.0'
58
- gem 'i18n'
59
-
60
60
  Contributions
61
61
  =====
62
62
  Feel free to write specs, add to the standard dictionary, etc. Submit a pull request and we'll see what happens!
63
63
 
64
+ Tests
65
+ =====
66
+
67
+ To test the gem against the current version of ActiveSupport (in [Gemfile.lock](Gemfile.lock)):
68
+
69
+ 1. `bundle install`
70
+ 2. `bundle exec rspec`
71
+
72
+ Or, you can run tests for all supported Rails versions
73
+
74
+ 1. `gem install appraisal`
75
+ 1. `bundle exec appraisal install` *(this Generates gemfiles for all permutations of our dependencies, so you'll see lots of bundler output))*
76
+ 1. `bundle exec appraisal rspec`. *(This runs rspec for each dependency permutation. If one fails, appraisal exits immediately and does not test permutations it hasn't gotten to yet. Tests are not considered passing until all permutations are passing)*
77
+
64
78
  Credits
65
79
  =====
66
80
  Copyright (c) 2013, developed and maintained by Steve Hodges, and is released under the open MIT Licence
@@ -1,126 +1,141 @@
1
1
  class TalkLikeAPirate
2
2
 
3
- def self.translate(me_string)
4
- me_string.is_a?(String) ? build_string(me_string) : me_string
5
- end
3
+ class << self
4
+ def translate(me_string)
5
+ me_string.is_a?(String) ? build_string(me_string) : me_string
6
+ end
6
7
 
7
- private #####################################################################
8
+ private #####################################################################
8
9
 
9
- def self.build_string(me_string)
10
- sentence = translate_string(me_string)
11
- if sentence.split(" ").length > 5 && sentence.match(/[!.?]\Z/) && rand(5) == 0
12
- sentence = prepare_original_sentence(sentence) + " " + build_piratey_sentence
10
+ def build_string(me_string)
11
+ sentence = translate_string(me_string)
12
+ if sentence.split(" ").length > 5 && sentence.match(/[!.?]\Z/) && rand(5) == 0
13
+ sentence = prepare_original_sentence(sentence) + " " + build_piratey_sentence
14
+ end
15
+ sentence
13
16
  end
14
- sentence
15
- end
16
17
 
17
- def self.translate_string(me_string)
18
- me_string.split(/ /).map do |word|
18
+ def translate_string(me_string)
19
+ me_string.split(/ /).map do |word|
19
20
 
20
- leading_punctuation, word, trailing_punctuation = extract_punctuation word
21
- capitalized = (word.slice(0,1) == word.slice(0,1).upcase)
22
- fully_capitalized = (word == word.upcase)
21
+ leading_punctuation, word, trailing_punctuation = extract_punctuation word
22
+ capitalized = (word.slice(0,1) == word.slice(0,1).upcase)
23
+ fully_capitalized = (word == word.upcase)
23
24
 
24
- word = Object.const_defined?(:ActiveSupport) ? piratize_with_pluralization(word.downcase) : piratize(word.downcase)
25
+ word = Object.const_defined?(:ActiveSupport) ? piratize_with_pluralization(word.downcase) : piratize(word.downcase)
25
26
 
26
- word = capitalize_first(word) if capitalized
27
- word = word.upcase if fully_capitalized
28
- "#{leading_punctuation}#{word}#{trailing_punctuation}"
29
- end.join(" ")
30
- end
27
+ word = capitalize_first(word) if capitalized
28
+ word = word.upcase if fully_capitalized
29
+ "#{leading_punctuation}#{word}#{trailing_punctuation}"
30
+ end.join(" ")
31
+ end
31
32
 
32
- def self.piratize_with_pluralization(word)
33
- pluralized = pluralize(word) == word
34
- if dictionary.has_key? singularize(word)
35
- word = dictionary[singularize(word)]
36
- pluralized ? pluralize(word) : word
37
- else
38
- translate_if_gerund word
33
+ def piratize_with_pluralization(word)
34
+ pluralized = pluralize(word) == word
35
+ if dictionary.has_key? singularize(word)
36
+ word = dictionary[singularize(word)]
37
+ pluralized ? pluralize(word) : word
38
+ else
39
+ translate_if_gerund word
40
+ end
39
41
  end
40
- end
41
42
 
42
- def self.piratize(word)
43
- if dictionary.has_key? word
44
- dictionary[word]
45
- else
46
- translate_if_gerund word
43
+ def piratize(word)
44
+ if dictionary.has_key? word
45
+ dictionary[word]
46
+ else
47
+ translate_if_gerund word
48
+ end
47
49
  end
48
- end
49
50
 
50
- def self.translate_if_gerund(word)
51
- if word[/ing\Z/]
52
- word.sub(/ing\Z/, "in'")
53
- elsif word[/ings\Z/]
54
- word.sub(/ings\Z/, "in's")
55
- else
56
- word
51
+ def translate_if_gerund(word)
52
+ if word[/ing\Z/]
53
+ word.sub(/ing\Z/, "in'")
54
+ elsif word[/ings\Z/]
55
+ word.sub(/ings\Z/, "in's")
56
+ else
57
+ word
58
+ end
57
59
  end
58
- end
59
60
 
60
- def self.extract_punctuation(word)
61
- leading_punctuation = word.match(/\A([^a-zA-Z]*)/)[1] rescue ""
62
- trailing_punctuation = word.match(/[a-zA-Z]+([^a-zA-Z]*)\Z/)[1] rescue ""
63
- word_length = word.length - leading_punctuation.length - trailing_punctuation.length
64
- word = word[leading_punctuation.length, word_length]
65
- return leading_punctuation, word, trailing_punctuation
66
- end
61
+ def extract_punctuation(word)
62
+ leading_punctuation = word.match(/\A([^a-zA-Z]*)/)[1] rescue ''
63
+ trailing_punctuation = word.match(/[a-zA-Z]+([^a-zA-Z]*)\Z/)[1] rescue ''
64
+ word_length = word.length - leading_punctuation.length - trailing_punctuation.length
65
+ word = word[leading_punctuation.length, word_length]
66
+ return leading_punctuation, word, trailing_punctuation
67
+ end
67
68
 
68
- def self.prepare_original_sentence(sentence)
69
- sentence.gsub!(/\.\z/, "")
70
- sentence = sentence + "." if sentence.match(/\w\z/)
71
- capitalize_first(sentence)
72
- end
69
+ def prepare_original_sentence(sentence)
70
+ sentence.gsub!(/\.\z/, "")
71
+ sentence = sentence + "." if sentence.match(/\w\z/)
72
+ capitalize_first(sentence)
73
+ end
73
74
 
74
- def self.build_piratey_sentence
75
- capitalize_first(sprinklings_of_flavor.sample) + ["!!","!","."].sample
76
- end
75
+ def build_piratey_sentence
76
+ capitalize_first(sprinklings_of_flavor.sample) + ["!!","!","."].sample
77
+ end
77
78
 
78
- def self.pirate_locale
79
- @@locale ||= local_config.has_key?("locale") ? local_config["locale"] : config["locale"]
80
- end
79
+ def pirate_locale
80
+ @@locale ||= local_config.has_key?("locale") ? local_config["locale"] : config["locale"]
81
+ end
81
82
 
82
- def self.dictionary
83
- @@dictionary_map ||= config["dictionary"].merge(local_dictionary)
84
- end
83
+ def dictionary
84
+ @@dictionary_map ||= config['dictionary'].merge(local_dictionary)
85
+ end
85
86
 
86
- def self.sprinklings_of_flavor
87
- @@fill ||= (config["pirate_flavor"] << local_flavor).compact.flatten
88
- end
87
+ def sprinklings_of_flavor
88
+ @@fill ||= (config['pirate_flavor'] << local_flavor).compact.flatten
89
+ end
89
90
 
90
- def self.config
91
- @@config ||= YAML::load_file(File.dirname(__FILE__) + "/talk_like_a_pirate/pirate_booty.yml")
92
- end
91
+ def config
92
+ @@config ||= begin
93
+ gem_config_path = File.join File.dirname(__FILE__), 'talk_like_a_pirate', 'pirate_booty.yml'
94
+ YAML::load_file gem_config_path
95
+ end
96
+ end
93
97
 
94
- def self.local_dictionary
95
- local_config.has_key?("dictionary") ? local_config["dictionary"] : {}
96
- end
98
+ def local_dictionary
99
+ local_config['dictionary'] || {}
100
+ end
97
101
 
98
- def self.local_flavor
99
- local_config.has_key?("pirate_flavor") ? local_config["pirate_flavor"] : nil
100
- end
102
+ def local_flavor
103
+ local_config['pirate_flavor'] || nil
104
+ end
101
105
 
102
- def self.local_config
103
- @@local_configs ||= YAML::load_file("#{Rails.root.to_s}/config/pirate_booty.yml") rescue {}
104
- end
106
+ def local_config
107
+ @@local_configs ||= begin
108
+ local_config_path = if Object.const_defined?(:Rails)
109
+ Rails.root.join('config', 'pirate_booty.yml')
110
+ else
111
+ ENV['TALK_LIKE_A_PIRATE_CONFIG_PATH']
112
+ end
113
+ if local_config_path && File.exist?(local_config_path)
114
+ YAML::load_file(local_config_path)
115
+ else
116
+ {}
117
+ end
118
+ end
119
+ end
105
120
 
106
- def self.capitalize_first(string)
107
- return string unless string.is_a? String
108
- return string.upcase if string.length < 2
109
- string.slice(0,1).capitalize + string.slice(1..-1)
110
- end
121
+ def capitalize_first(string)
122
+ return string unless string.is_a? String
123
+ return string.upcase if string.length < 2
124
+ string.slice(0,1).capitalize + string.slice(1..-1)
125
+ end
111
126
 
112
- def self.singularize(word)
113
- ActiveSupport::Inflector.singularize(word)
114
- end
127
+ def singularize(word)
128
+ ActiveSupport::Inflector.singularize(word)
129
+ end
115
130
 
116
- def self.pluralize(word)
117
- ActiveSupport::Inflector.pluralize(word)
131
+ def pluralize(word)
132
+ ActiveSupport::Inflector.pluralize(word)
133
+ end
118
134
  end
119
-
120
135
  end
121
136
 
122
137
  if Object.const_defined? :Rails
123
- require "talk_like_a_pirate/railties"
138
+ require 'talk_like_a_pirate/railties'
124
139
  else
125
- require "yaml"
140
+ require 'yaml'
126
141
  end
@@ -1,57 +1,61 @@
1
1
  require 'talk_like_a_pirate'
2
2
 
3
+ # TODO: Test Rails integration/railties/rake task
4
+
3
5
  describe TalkLikeAPirate do
6
+ def execute(string)
7
+ TalkLikeAPirate.translate(string)
8
+ end
4
9
 
5
- it "should make a word piratey" do
6
- TalkLikeAPirate.translate('between').should == "betwixt"
10
+ it "makes a word piratey" do
11
+ expect(execute('between')).to eq "betwixt"
7
12
  end
8
13
 
9
14
  it "shouldn't translate plural words without ActiveSupport" do
10
- TalkLikeAPirate.translate("islands").should == 'islands'
15
+ expect(execute("islands")).to eq 'islands'
11
16
  end
12
17
 
13
- it "should make gerunds piratey" do
14
- TalkLikeAPirate.translate('having').should == "havin'"
18
+ it "makes gerunds piratey" do
19
+ expect(execute('having')).to eq "havin'"
15
20
  end
16
21
 
17
- it "should make plural gerunds piratey" do
18
- TalkLikeAPirate.translate('havings').should == "havin's"
22
+ it "makes plural gerunds piratey" do
23
+ expect(execute('havings')).to eq "havin's"
19
24
  end
20
25
 
21
- it "should properly capitalize single words" do
22
- TalkLikeAPirate.translate('Boss').should == "Admiral"
26
+ it "properly capitalizes single words" do
27
+ expect(execute('Boss')).to eq "Admiral"
23
28
  end
24
29
 
25
- it "should properly capitalize all caps words" do
26
- TalkLikeAPirate.translate('BOSS').should == "ADMIRAL"
27
- TalkLikeAPirate.translate('BOSS!!!!').should == "ADMIRAL!!!!"
30
+ it "properly capitalizes all caps words" do
31
+ expect(execute('BOSS')).to eq "ADMIRAL"
32
+ expect(execute('BOSS!!!!')).to eq "ADMIRAL!!!!"
28
33
  end
29
34
 
30
- it "should properly capitalize phrases" do
31
- TalkLikeAPirate.translate('Bourbon Country').should == "Rum Land"
32
- TalkLikeAPirate.translate('Bourbon country').should == "Rum land"
35
+ it "properly capitalizes phrases" do
36
+ expect(execute('Bourbon Country')).to eq "Rum Land"
37
+ expect(execute('Bourbon country')).to eq "Rum land"
33
38
  end
34
39
 
35
- it "should properly translate words with trailing punctuation" do
36
- TalkLikeAPirate.translate('man!!!').should == "pirate!!!"
37
- TalkLikeAPirate.translate('man!?!?!?!').should == "pirate!?!?!?!"
40
+ it "properly translates words with trailing punctuation" do
41
+ expect(execute('man!!!')).to eq "pirate!!!"
42
+ expect(execute('man!?!?!?!')).to eq "pirate!?!?!?!"
38
43
  end
39
44
 
40
- it "should properly translate plural gerunds with trailing punctuation" do
41
- TalkLikeAPirate.translate('belongings!').should == "belongin's!"
45
+ it "properly translates plural gerunds with trailing punctuation" do
46
+ expect(execute('belongings!')).to eq "belongin's!"
42
47
  end
43
48
 
44
- it "should properly punctuate and translate words with leading and punctuation" do
45
- TalkLikeAPirate.translate('"The boss said kill."').should == '"Tha admiral said keelhaul."'
46
- TalkLikeAPirate.translate('"The boss said to kill the dude!"').split(" ")[0..6].join(" ").should == '"Tha admiral said t\' keelhaul tha pirate!"'
49
+ it "properly punctuates and translates words with leading and punctuation" do
50
+ expect(execute('"The boss said kill."')).to eq '"Tha admiral said keelhaul."'
51
+ expect(execute('"The boss said to kill the dude!"')).to eq '"Tha admiral said t\' keelhaul tha pirate!"'
47
52
  end
48
53
 
49
- it "should translate plural words when ActiveSupport's available" do
54
+ it "translates plural words when ActiveSupport's available" do
50
55
  require "active_support"
51
56
  require "active_support/inflector"
52
57
 
53
- TalkLikeAPirate.translate("islands").should == 'isles'
54
- TalkLikeAPirate.translate("men").should == 'pirates'
58
+ expect(execute("islands")).to eq 'isles'
59
+ expect(execute("men")).to eq 'pirates'
55
60
  end
56
-
57
61
  end
@@ -1,17 +1,22 @@
1
1
  # -*- encoding: utf-8 -*-
2
- Gem::Specification.new do |s|
3
- s.name = 'talk_like_a_pirate'
4
- s.version = '0.1.0'
5
- s.authors = ['Steve Hodges']
6
- s.email = ['sjhodges@gmail.com']
7
- s.homepage = 'https://github.com/stevehodges/talk_like_a_pirate'
8
- s.summary = 'Talk Like A Pirate'
9
- s.description = 'Add a pirate translation layer to your Rails app! Talk, like a Pirate!'
2
+ Gem::Specification.new do |spec|
3
+ spec.name = 'talk_like_a_pirate'
4
+ spec.version = '0.2.0'
5
+ spec.authors = ['Steve Hodges']
6
+ spec.email = ['shodges317@gmail.com']
7
+ spec.homepage = 'https://github.com/stevehodges/talk_like_a_pirate'
8
+ spec.summary = 'Talk Like A Pirate'
9
+ spec.description = 'Add a pirate translation layer to your Rails app! Talk, like a Pirate!'
10
10
 
11
- s.files = `git ls-files`.split("\n")
12
- s.test_files = `git ls-files -- {spec}/*`.split("\n")
11
+ spec.files = `git ls-files`.split("\n")
12
+ spec.test_files = `git ls-files -- {spec}/*`.split("\n")
13
13
 
14
- s.add_development_dependency 'rake'
15
- s.add_development_dependency 'rspec'
16
- s.require_paths = ['lib']
14
+ spec.add_dependency 'activesupport', '>= 3.0.0', '< 6.0.0'
15
+ spec.add_dependency 'i18n'
16
+
17
+ spec.add_development_dependency 'appraisal', '~> 2.2'
18
+ spec.add_development_dependency 'bundler', '~> 1.9'
19
+ spec.add_development_dependency 'rake', '~> 10.0'
20
+ spec.add_development_dependency 'rspec', '~> 3'
21
+ spec.require_paths = ['lib']
17
22
  end
metadata CHANGED
@@ -1,52 +1,117 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: talk_like_a_pirate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Hodges
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-14 00:00:00.000000000 Z
11
+ date: 2018-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rake
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 3.0.0
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 6.0.0
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 3.0.0
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: 6.0.0
33
+ - !ruby/object:Gem::Dependency
34
+ name: i18n
15
35
  requirement: !ruby/object:Gem::Requirement
16
36
  requirements:
17
- - - '>='
37
+ - - ">="
18
38
  - !ruby/object:Gem::Version
19
39
  version: '0'
20
- type: :development
40
+ type: :runtime
21
41
  prerelease: false
22
42
  version_requirements: !ruby/object:Gem::Requirement
23
43
  requirements:
24
- - - '>='
44
+ - - ">="
25
45
  - !ruby/object:Gem::Version
26
46
  version: '0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: appraisal
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '2.2'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '2.2'
61
+ - !ruby/object:Gem::Dependency
62
+ name: bundler
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '1.9'
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '1.9'
75
+ - !ruby/object:Gem::Dependency
76
+ name: rake
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '10.0'
82
+ type: :development
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: '10.0'
27
89
  - !ruby/object:Gem::Dependency
28
90
  name: rspec
29
91
  requirement: !ruby/object:Gem::Requirement
30
92
  requirements:
31
- - - '>='
93
+ - - "~>"
32
94
  - !ruby/object:Gem::Version
33
- version: '0'
95
+ version: '3'
34
96
  type: :development
35
97
  prerelease: false
36
98
  version_requirements: !ruby/object:Gem::Requirement
37
99
  requirements:
38
- - - '>='
100
+ - - "~>"
39
101
  - !ruby/object:Gem::Version
40
- version: '0'
102
+ version: '3'
41
103
  description: Add a pirate translation layer to your Rails app! Talk, like a Pirate!
42
104
  email:
43
- - sjhodges@gmail.com
105
+ - shodges317@gmail.com
44
106
  executables: []
45
107
  extensions: []
46
108
  extra_rdoc_files: []
47
109
  files:
110
+ - ".gitignore"
111
+ - Appraisals
48
112
  - Gemfile
49
113
  - Gemfile.lock
114
+ - LICENSE
50
115
  - README.md
51
116
  - Rakefile
52
117
  - lib/talk_like_a_pirate.rb
@@ -64,17 +129,17 @@ require_paths:
64
129
  - lib
65
130
  required_ruby_version: !ruby/object:Gem::Requirement
66
131
  requirements:
67
- - - '>='
132
+ - - ">="
68
133
  - !ruby/object:Gem::Version
69
134
  version: '0'
70
135
  required_rubygems_version: !ruby/object:Gem::Requirement
71
136
  requirements:
72
- - - '>='
137
+ - - ">="
73
138
  - !ruby/object:Gem::Version
74
139
  version: '0'
75
140
  requirements: []
76
141
  rubyforge_project:
77
- rubygems_version: 2.0.2
142
+ rubygems_version: 2.6.14.1
78
143
  signing_key:
79
144
  specification_version: 4
80
145
  summary: Talk Like A Pirate