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 +4 -4
- data/.gitignore +4 -0
- data/Appraisals +27 -0
- data/Gemfile +1 -6
- data/Gemfile.lock +46 -15
- data/LICENSE +21 -0
- data/README.md +24 -10
- data/lib/talk_like_a_pirate.rb +107 -92
- data/spec/lib/talk_like_a_pirate_spec.rb +31 -27
- data/talk_like_a_pirate.gemspec +18 -13
- metadata +79 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8889d472451363ee0bf6512c4b553f7930578c85
|
4
|
+
data.tar.gz: 1482daf20f68724ff9970cbd2c43f41a17806f61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee40a7bcd68a17fe95d9176163cb11b456c08cf3d9cd4241a34e5257c9decef44b6c87ef9097bb8897cbbb21b19042f49cee8fd39b7490fed879384130c427e0
|
7
|
+
data.tar.gz: 41256b674a9594ad736ccc4229fb2f0212a34f77c32d36aa06fcad9c1afaacc7043f11be42f5a32fec30bc3ac398a88217eb1016e2ad439161774ec727017763
|
data/.gitignore
ADDED
data/Appraisals
ADDED
@@ -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
data/Gemfile.lock
CHANGED
@@ -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 (
|
5
|
-
|
6
|
-
|
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 (
|
9
|
-
rspec-core (~>
|
10
|
-
rspec-expectations (~>
|
11
|
-
rspec-mocks (~>
|
12
|
-
rspec-core (
|
13
|
-
|
14
|
-
|
15
|
-
|
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
|
-
|
22
|
-
|
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
|
-
|
6
|
+
Plus, add a pirate translation layer to your Ruby or Rails app! Talk, like a Pirate!
|
7
7
|
|
8
|
-
|
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
|
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
|
data/lib/talk_like_a_pirate.rb
CHANGED
@@ -1,126 +1,141 @@
|
|
1
1
|
class TalkLikeAPirate
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
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
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
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
|
-
|
18
|
-
|
18
|
+
def translate_string(me_string)
|
19
|
+
me_string.split(/ /).map do |word|
|
19
20
|
|
20
|
-
|
21
|
-
|
22
|
-
|
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
|
-
|
25
|
+
word = Object.const_defined?(:ActiveSupport) ? piratize_with_pluralization(word.downcase) : piratize(word.downcase)
|
25
26
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
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
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
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
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
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
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
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
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
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
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
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
|
-
|
75
|
-
|
76
|
-
|
75
|
+
def build_piratey_sentence
|
76
|
+
capitalize_first(sprinklings_of_flavor.sample) + ["!!","!","."].sample
|
77
|
+
end
|
77
78
|
|
78
|
-
|
79
|
-
|
80
|
-
|
79
|
+
def pirate_locale
|
80
|
+
@@locale ||= local_config.has_key?("locale") ? local_config["locale"] : config["locale"]
|
81
|
+
end
|
81
82
|
|
82
|
-
|
83
|
-
|
84
|
-
|
83
|
+
def dictionary
|
84
|
+
@@dictionary_map ||= config['dictionary'].merge(local_dictionary)
|
85
|
+
end
|
85
86
|
|
86
|
-
|
87
|
-
|
88
|
-
|
87
|
+
def sprinklings_of_flavor
|
88
|
+
@@fill ||= (config['pirate_flavor'] << local_flavor).compact.flatten
|
89
|
+
end
|
89
90
|
|
90
|
-
|
91
|
-
|
92
|
-
|
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
|
-
|
95
|
-
|
96
|
-
|
98
|
+
def local_dictionary
|
99
|
+
local_config['dictionary'] || {}
|
100
|
+
end
|
97
101
|
|
98
|
-
|
99
|
-
|
100
|
-
|
102
|
+
def local_flavor
|
103
|
+
local_config['pirate_flavor'] || nil
|
104
|
+
end
|
101
105
|
|
102
|
-
|
103
|
-
|
104
|
-
|
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
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
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
|
-
|
113
|
-
|
114
|
-
|
127
|
+
def singularize(word)
|
128
|
+
ActiveSupport::Inflector.singularize(word)
|
129
|
+
end
|
115
130
|
|
116
|
-
|
117
|
-
|
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
|
138
|
+
require 'talk_like_a_pirate/railties'
|
124
139
|
else
|
125
|
-
require
|
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 "
|
6
|
-
|
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
|
-
|
15
|
+
expect(execute("islands")).to eq 'islands'
|
11
16
|
end
|
12
17
|
|
13
|
-
it "
|
14
|
-
|
18
|
+
it "makes gerunds piratey" do
|
19
|
+
expect(execute('having')).to eq "havin'"
|
15
20
|
end
|
16
21
|
|
17
|
-
it "
|
18
|
-
|
22
|
+
it "makes plural gerunds piratey" do
|
23
|
+
expect(execute('havings')).to eq "havin's"
|
19
24
|
end
|
20
25
|
|
21
|
-
it "
|
22
|
-
|
26
|
+
it "properly capitalizes single words" do
|
27
|
+
expect(execute('Boss')).to eq "Admiral"
|
23
28
|
end
|
24
29
|
|
25
|
-
it "
|
26
|
-
|
27
|
-
|
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 "
|
31
|
-
|
32
|
-
|
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 "
|
36
|
-
|
37
|
-
|
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 "
|
41
|
-
|
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 "
|
45
|
-
|
46
|
-
|
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 "
|
54
|
+
it "translates plural words when ActiveSupport's available" do
|
50
55
|
require "active_support"
|
51
56
|
require "active_support/inflector"
|
52
57
|
|
53
|
-
|
54
|
-
|
58
|
+
expect(execute("islands")).to eq 'isles'
|
59
|
+
expect(execute("men")).to eq 'pirates'
|
55
60
|
end
|
56
|
-
|
57
61
|
end
|
data/talk_like_a_pirate.gemspec
CHANGED
@@ -1,17 +1,22 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
Gem::Specification.new do |
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
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
|
-
|
12
|
-
|
11
|
+
spec.files = `git ls-files`.split("\n")
|
12
|
+
spec.test_files = `git ls-files -- {spec}/*`.split("\n")
|
13
13
|
|
14
|
-
|
15
|
-
|
16
|
-
|
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.
|
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:
|
11
|
+
date: 2018-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
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: :
|
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: '
|
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: '
|
102
|
+
version: '3'
|
41
103
|
description: Add a pirate translation layer to your Rails app! Talk, like a Pirate!
|
42
104
|
email:
|
43
|
-
-
|
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.
|
142
|
+
rubygems_version: 2.6.14.1
|
78
143
|
signing_key:
|
79
144
|
specification_version: 4
|
80
145
|
summary: Talk Like A Pirate
|