wordbot 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +14 -0
- data/.rspec +3 -0
- data/.travis.yml +3 -0
- data/Gemfile +3 -0
- data/Guardfile +67 -0
- data/LICENSE.md +22 -0
- data/README.md +6 -0
- data/Rakefile +7 -0
- data/lib/wordbot.rb +1 -0
- data/lib/wordbot/bot.rb +52 -0
- data/lib/wordbot/version.rb +3 -0
- data/spec/spec_helper.rb +97 -0
- data/spec/wordbot/scrambler_spec.rb +27 -0
- data/spec/wordbot/splitter_spec.rb +128 -0
- data/wordbot.gemspec +27 -0
- metadata +147 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 051f354c6ebcddf32d7c4638ebda1ae34b114bc4
|
4
|
+
data.tar.gz: 8a1b32547c6f25a7599051231e4f8d3e060bcc92
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ac8cb20ecc944f6392a2d5dad550d9bd934165831b22b5c7adc600ef7958c4b8e2c6bc26086ec01f54bf4d95b3d01c0ef149854d245a94c720575c0e20603c55
|
7
|
+
data.tar.gz: 46cb4a08a57794fc46e366c79caf96e6e7b58bf2925fcb009b2fc21613b1b34c4b67728d283954956a32000fa2c442fffb9d552e8415792658290a1559a2300d
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/Guardfile
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
# A sample Guardfile
|
2
|
+
# More info at https://github.com/guard/guard#readme
|
3
|
+
|
4
|
+
## Uncomment and set this to only include directories you want to watch
|
5
|
+
# directories %(app lib config test spec feature)
|
6
|
+
|
7
|
+
## Uncomment to clear the screen before every task
|
8
|
+
# clearing :on
|
9
|
+
|
10
|
+
# Note: The cmd option is now required due to the increasing number of ways
|
11
|
+
# rspec may be run, below are examples of the most common uses.
|
12
|
+
# * bundler: 'bundle exec rspec'
|
13
|
+
# * bundler binstubs: 'bin/rspec'
|
14
|
+
# * spring: 'bin/rspec' (This will use spring if running and you have
|
15
|
+
# installed the spring binstubs per the docs)
|
16
|
+
# * zeus: 'zeus rspec' (requires the server to be started separately)
|
17
|
+
# * 'just' rspec: 'rspec'
|
18
|
+
|
19
|
+
guard :rspec, cmd: "bundle exec rspec" do
|
20
|
+
require "ostruct"
|
21
|
+
|
22
|
+
# Generic Ruby apps
|
23
|
+
rspec = OpenStruct.new
|
24
|
+
rspec.spec = ->(m) { "spec/#{m}_spec.rb" }
|
25
|
+
rspec.spec_dir = "spec"
|
26
|
+
rspec.spec_helper = "spec/spec_helper.rb"
|
27
|
+
|
28
|
+
watch(%r{^spec/.+_spec\.rb$})
|
29
|
+
watch(%r{^lib/(.+)\.rb$}) { |m| rspec.spec.("lib/#{m[1]}") }
|
30
|
+
watch(rspec.spec_helper) { rspec.spec_dir }
|
31
|
+
|
32
|
+
# Rails example
|
33
|
+
rails = OpenStruct.new
|
34
|
+
rails.app = %r{^app/(.+)\.rb$}
|
35
|
+
rails.views_n_layouts = %r{^app/(.*)(\.erb|\.haml|\.slim)$}
|
36
|
+
rails.controllers = %r{^app/controllers/(.+)_controller\.rb$}
|
37
|
+
rails.routes = "config/routes.rb"
|
38
|
+
rails.app_controller = "app/controllers/application_controller.rb"
|
39
|
+
rails.spec_helper = "spec/rails_helper.rb"
|
40
|
+
rails.spec_support = %r{^spec/support/(.+)\.rb$}
|
41
|
+
rails.views = %r{^app/views/(.+)/.*\.(erb|haml|slim)$}
|
42
|
+
|
43
|
+
watch(rails.app) { |m| rspec.spec.(m[1]) }
|
44
|
+
watch(rails.views_n_layouts) { |m| rspec.spec.("#{m[1]}#{m[2]}") }
|
45
|
+
watch(rails.controllers) do |m|
|
46
|
+
[
|
47
|
+
rspec.spec.("routing/#{m[1]}_routing"),
|
48
|
+
rspec.spec.("controllers/#{m[1]}_controller"),
|
49
|
+
rspec.spec.("acceptance/#{m[1]}")
|
50
|
+
]
|
51
|
+
end
|
52
|
+
|
53
|
+
watch(rails.spec_support) { rspec.spec_dir }
|
54
|
+
watch(rails.spec_helper) { rspec.spec_dir }
|
55
|
+
watch(rails.routes) { "spec/routing" }
|
56
|
+
watch(rails.app_controller) { "spec/controllers" }
|
57
|
+
|
58
|
+
# Capybara features specs
|
59
|
+
watch(rails.views) { |m| rspec.spec.("features/#{m[1]}") }
|
60
|
+
|
61
|
+
# Turnip features and steps
|
62
|
+
watch(%r{^spec/acceptance/(.+)\.feature$})
|
63
|
+
watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) do |m|
|
64
|
+
Dir[File.join("**/#{m[1]}.feature")][0] || "spec/acceptance"
|
65
|
+
end
|
66
|
+
|
67
|
+
end
|
data/LICENSE.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
##Copyright (c) 2014 Sam Pikesley
|
2
|
+
|
3
|
+
#MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,6 @@
|
|
1
|
+
[![Build Status](https://travis-ci.org/pikesley/wordbot.svg)](https://travis-ci.org/pikesley/wordbot)
|
2
|
+
[![Dependency Status](http://img.shields.io/gemnasium/pikesley/wordbot.svg)](https://gemnasium.com/pikesley/wordbot)
|
3
|
+
[![Code Climate](http://img.shields.io/codeclimate/github/pikesley/wordbot.svg)](https://codeclimate.com/github/pikesley/wordbot)
|
4
|
+
[![Gem Version](http://img.shields.io/gem/v/wordbot.svg)](https://rubygems.org/gems/wordbot)
|
5
|
+
[![License](http://img.shields.io/:license-mit-blue.svg)](http://pikesley.mit-license.org)
|
6
|
+
[![Badges](http://img.shields.io/:badges-6/6-ff6799.svg)](https://github.com/badges/badgerbadgerbadger)
|
data/Rakefile
ADDED
data/lib/wordbot.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'wordbot/bot'
|
data/lib/wordbot/bot.rb
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
module Wordbot
|
2
|
+
class Bot
|
3
|
+
def self.split string
|
4
|
+
compress string.split /([^A-Za-z])/
|
5
|
+
end
|
6
|
+
|
7
|
+
def self.compress list
|
8
|
+
a = []
|
9
|
+
buffer = ''
|
10
|
+
|
11
|
+
list.each do |i|
|
12
|
+
if is_word i
|
13
|
+
unless buffer == ''
|
14
|
+
a.push buffer
|
15
|
+
buffer = ''
|
16
|
+
end
|
17
|
+
a.push i
|
18
|
+
else
|
19
|
+
buffer << i
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
unless buffer == ''
|
24
|
+
a.push buffer
|
25
|
+
end
|
26
|
+
|
27
|
+
a
|
28
|
+
end
|
29
|
+
|
30
|
+
def self.scramble word
|
31
|
+
return word unless is_word word
|
32
|
+
word = word.split ''
|
33
|
+
front = word.shift
|
34
|
+
back = word.pop
|
35
|
+
|
36
|
+
'%s%s%s' % [
|
37
|
+
front,
|
38
|
+
word.shuffle.join(''),
|
39
|
+
back
|
40
|
+
]
|
41
|
+
end
|
42
|
+
|
43
|
+
def self.is_word string
|
44
|
+
return false if string == ''
|
45
|
+
string.split('').all? { |c| is_letter c }
|
46
|
+
end
|
47
|
+
|
48
|
+
def self.is_letter char
|
49
|
+
'abcdefghijklmnopqrstuvwxyz'.index char.downcase
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,97 @@
|
|
1
|
+
# This file was generated by the `rspec --init` command. Conventionally, all
|
2
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
3
|
+
# The generated `.rspec` file contains `--require spec_helper` which will cause this
|
4
|
+
# file to always be loaded, without a need to explicitly require it in any files.
|
5
|
+
#
|
6
|
+
# Given that it is always loaded, you are encouraged to keep this file as
|
7
|
+
# light-weight as possible. Requiring heavyweight dependencies from this file
|
8
|
+
# will add to the boot time of your test suite on EVERY test run, even for an
|
9
|
+
# individual file that may not need all of that loaded. Instead, consider making
|
10
|
+
# a separate helper file that requires the additional dependencies and performs
|
11
|
+
# the additional setup, and require it from the spec files that actually need it.
|
12
|
+
#
|
13
|
+
# The `.rspec` file also contains a few flags that are not defaults but that
|
14
|
+
# users commonly want.
|
15
|
+
#
|
16
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
17
|
+
|
18
|
+
require 'pry'
|
19
|
+
require 'wordbot'
|
20
|
+
|
21
|
+
RSpec.configure do |config|
|
22
|
+
# rspec-expectations config goes here. You can use an alternate
|
23
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
24
|
+
# assertions if you prefer.
|
25
|
+
config.expect_with :rspec do |expectations|
|
26
|
+
# This option will default to `true` in RSpec 4. It makes the `description`
|
27
|
+
# and `failure_message` of custom matchers include text for helper methods
|
28
|
+
# defined using `chain`, e.g.:
|
29
|
+
# be_bigger_than(2).and_smaller_than(4).description
|
30
|
+
# # => "be bigger than 2 and smaller than 4"
|
31
|
+
# ...rather than:
|
32
|
+
# # => "be bigger than 2"
|
33
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
34
|
+
end
|
35
|
+
|
36
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
37
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
38
|
+
config.mock_with :rspec do |mocks|
|
39
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
40
|
+
# a real object. This is generally recommended, and will default to
|
41
|
+
# `true` in RSpec 4.
|
42
|
+
mocks.verify_partial_doubles = true
|
43
|
+
end
|
44
|
+
|
45
|
+
config.order = :random
|
46
|
+
config.filter_run :focus
|
47
|
+
config.run_all_when_everything_filtered = true
|
48
|
+
|
49
|
+
# The settings below are suggested to provide a good initial experience
|
50
|
+
# with RSpec, but feel free to customize to your heart's content.
|
51
|
+
=begin
|
52
|
+
# These two settings work together to allow you to limit a spec run
|
53
|
+
# to individual examples or groups you care about by tagging them with
|
54
|
+
# `:focus` metadata. When nothing is tagged with `:focus`, all examples
|
55
|
+
# get run.
|
56
|
+
config.filter_run :focus
|
57
|
+
config.run_all_when_everything_filtered = true
|
58
|
+
|
59
|
+
# Limits the available syntax to the non-monkey patched syntax that is recommended.
|
60
|
+
# For more details, see:
|
61
|
+
# - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
|
62
|
+
# - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
63
|
+
# - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
|
64
|
+
config.disable_monkey_patching!
|
65
|
+
|
66
|
+
# This setting enables warnings. It's recommended, but in some cases may
|
67
|
+
# be too noisy due to issues in dependencies.
|
68
|
+
config.warnings = true
|
69
|
+
|
70
|
+
# Many RSpec users commonly either run the entire suite or an individual
|
71
|
+
# file, and it's useful to allow more verbose output when running an
|
72
|
+
# individual spec file.
|
73
|
+
if config.files_to_run.one?
|
74
|
+
# Use the documentation formatter for detailed output,
|
75
|
+
# unless a formatter has already been configured
|
76
|
+
# (e.g. via a command-line flag).
|
77
|
+
config.default_formatter = 'doc'
|
78
|
+
end
|
79
|
+
|
80
|
+
# Print the 10 slowest examples and example groups at the
|
81
|
+
# end of the spec run, to help surface which specs are running
|
82
|
+
# particularly slow.
|
83
|
+
config.profile_examples = 10
|
84
|
+
|
85
|
+
# Run specs in random order to surface order dependencies. If you find an
|
86
|
+
# order dependency and want to debug it, you can fix the order by providing
|
87
|
+
# the seed, which is printed after each run.
|
88
|
+
# --seed 1234
|
89
|
+
config.order = :random
|
90
|
+
|
91
|
+
# Seed global randomization in this process using the `--seed` CLI option.
|
92
|
+
# Setting this allows you to use `--seed` to deterministically reproduce
|
93
|
+
# test failures related to randomization by passing the same `--seed` value
|
94
|
+
# as the one that triggered the failure.
|
95
|
+
Kernel.srand config.seed
|
96
|
+
=end
|
97
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module Wordbot
|
4
|
+
describe Bot do
|
5
|
+
context 'Scramble some words' do
|
6
|
+
it 'should scramble "ab"' do
|
7
|
+
expect(Wordbot::Bot.scramble 'ab').to eq 'ab'
|
8
|
+
end
|
9
|
+
|
10
|
+
it 'should scramble "abc"' do
|
11
|
+
expect(Wordbot::Bot.scramble 'abc').to eq 'abc'
|
12
|
+
end
|
13
|
+
|
14
|
+
it 'should scramble "abcd"' do
|
15
|
+
expect(Wordbot::Bot.scramble 'abcd').to match /^a[bc][bc]d$/
|
16
|
+
end
|
17
|
+
|
18
|
+
it 'should scramble "quirkafleeg"' do
|
19
|
+
expect(Wordbot::Bot.scramble 'quirkafleeg').to match /^q[uirkafle]{9}g$/
|
20
|
+
end
|
21
|
+
|
22
|
+
it 'should not scramble "1974"' do
|
23
|
+
expect(Wordbot::Bot.scramble '1974').to eq '1974'
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,128 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module Wordbot
|
4
|
+
describe Bot do
|
5
|
+
context 'Splitter' do
|
6
|
+
context 'Simple splits' do
|
7
|
+
it 'should split "a"' do
|
8
|
+
expect(Wordbot::Bot.split 'a').to eq ['a']
|
9
|
+
end
|
10
|
+
|
11
|
+
it 'should split "a "' do
|
12
|
+
expect(Wordbot::Bot.split 'a ').to eq ['a', ' ']
|
13
|
+
end
|
14
|
+
|
15
|
+
it 'should split "aa bb"' do
|
16
|
+
expect(Wordbot::Bot.split 'aa bb').to eq ['aa', ' ', 'bb']
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
context 'Splits with punctuation' do
|
21
|
+
it 'should split "aa? bb"' do
|
22
|
+
expect(Wordbot::Bot.split 'aa? bb').to eq ['aa', '? ', 'bb']
|
23
|
+
end
|
24
|
+
|
25
|
+
it 'should split "Hello, this is a thing!"' do
|
26
|
+
expect(Wordbot::Bot.split 'Hello, this is a thing!').to eq [
|
27
|
+
'Hello',
|
28
|
+
', ',
|
29
|
+
'this',
|
30
|
+
' ',
|
31
|
+
'is',
|
32
|
+
' ',
|
33
|
+
'a',
|
34
|
+
' ',
|
35
|
+
'thing',
|
36
|
+
'!'
|
37
|
+
]
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
context 'Splits with hyphenation' do
|
42
|
+
it 'should split "This is a hyphenated-word"' do
|
43
|
+
expect(Wordbot::Bot.split 'This is a hyphenated-word').to eq [
|
44
|
+
'This',
|
45
|
+
' ',
|
46
|
+
'is',
|
47
|
+
' ',
|
48
|
+
'a',
|
49
|
+
' ',
|
50
|
+
'hyphenated',
|
51
|
+
'-',
|
52
|
+
'word'
|
53
|
+
]
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
context 'Splits with quotes' do
|
58
|
+
it 'should split "This has \'embedded quotes\'"' do
|
59
|
+
expect(Wordbot::Bot.split "This has 'embedded quotes'").to eq [
|
60
|
+
'This',
|
61
|
+
' ',
|
62
|
+
'has',
|
63
|
+
" '",
|
64
|
+
'embedded',
|
65
|
+
' ',
|
66
|
+
'quotes',
|
67
|
+
"'"
|
68
|
+
]
|
69
|
+
end
|
70
|
+
|
71
|
+
it "should split 'How about some \"double-quotes\"" do
|
72
|
+
expect(Wordbot::Bot.split 'How about some "double-quotes"').to eq [
|
73
|
+
'How',
|
74
|
+
' ',
|
75
|
+
'about',
|
76
|
+
' ',
|
77
|
+
'some',
|
78
|
+
' "',
|
79
|
+
'double',
|
80
|
+
'-',
|
81
|
+
'quotes',
|
82
|
+
'"'
|
83
|
+
]
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
context 'Splits with random punctuation' do
|
88
|
+
it 'should split "this( h%s d+= \' } fff£33d"' do
|
89
|
+
expect(Wordbot::Bot.split "this( h%s d+= ' } fff£33d").to eq [
|
90
|
+
'this',
|
91
|
+
'( ',
|
92
|
+
'h',
|
93
|
+
'%',
|
94
|
+
's',
|
95
|
+
' ',
|
96
|
+
'd',
|
97
|
+
"+= ' } ",
|
98
|
+
'fff',
|
99
|
+
'£33',
|
100
|
+
'd'
|
101
|
+
]
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
context 'Compressor' do
|
107
|
+
it 'should join up the non-word content' do
|
108
|
+
expect(Wordbot::Bot.compress ['aa', '?', '', ' ', 'bb']).to eq [
|
109
|
+
'aa',
|
110
|
+
'? ',
|
111
|
+
'bb'
|
112
|
+
]
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
context 'Word detector' do
|
117
|
+
it 'should recognise a word' do
|
118
|
+
expect(Wordbot::Bot.is_word 'aa').to eq true
|
119
|
+
expect(Wordbot::Bot.is_word 'abc').to eq true
|
120
|
+
expect(Wordbot::Bot.is_word 'Sam').to eq true
|
121
|
+
expect(Wordbot::Bot.is_word '123').to eq false
|
122
|
+
expect(Wordbot::Bot.is_word 'b22').to eq false
|
123
|
+
expect(Wordbot::Bot.is_word '?').to eq false
|
124
|
+
expect(Wordbot::Bot.is_word '').to eq false
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|
128
|
+
end
|
data/wordbot.gemspec
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'wordbot/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'wordbot'
|
8
|
+
spec.version = Wordbot::VERSION
|
9
|
+
spec.authors = ['pikesley']
|
10
|
+
spec.email = ['sam@pikesley.org']
|
11
|
+
spec.summary = %q{Do some stuff with text}
|
12
|
+
spec.description = %q{}
|
13
|
+
spec.homepage = ''
|
14
|
+
spec.license = 'MIT'
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ['lib']
|
20
|
+
|
21
|
+
spec.add_development_dependency 'bundler', '~> 1.7'
|
22
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
23
|
+
spec.add_development_dependency 'rspec'
|
24
|
+
spec.add_development_dependency 'guard'
|
25
|
+
spec.add_development_dependency 'guard-rspec'
|
26
|
+
spec.add_development_dependency 'terminal-notifier-guard'
|
27
|
+
end
|
metadata
ADDED
@@ -0,0 +1,147 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: wordbot
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- pikesley
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-12-13 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.7'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.7'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: guard
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: guard-rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: terminal-notifier-guard
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
description: ''
|
98
|
+
email:
|
99
|
+
- sam@pikesley.org
|
100
|
+
executables: []
|
101
|
+
extensions: []
|
102
|
+
extra_rdoc_files: []
|
103
|
+
files:
|
104
|
+
- ".gitignore"
|
105
|
+
- ".rspec"
|
106
|
+
- ".travis.yml"
|
107
|
+
- Gemfile
|
108
|
+
- Gemfile.lock
|
109
|
+
- Guardfile
|
110
|
+
- LICENSE.md
|
111
|
+
- README.md
|
112
|
+
- Rakefile
|
113
|
+
- lib/wordbot.rb
|
114
|
+
- lib/wordbot/bot.rb
|
115
|
+
- lib/wordbot/version.rb
|
116
|
+
- spec/spec_helper.rb
|
117
|
+
- spec/wordbot/scrambler_spec.rb
|
118
|
+
- spec/wordbot/splitter_spec.rb
|
119
|
+
- wordbot.gemspec
|
120
|
+
homepage: ''
|
121
|
+
licenses:
|
122
|
+
- MIT
|
123
|
+
metadata: {}
|
124
|
+
post_install_message:
|
125
|
+
rdoc_options: []
|
126
|
+
require_paths:
|
127
|
+
- lib
|
128
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - ">="
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '0'
|
133
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - ">="
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '0'
|
138
|
+
requirements: []
|
139
|
+
rubyforge_project:
|
140
|
+
rubygems_version: 2.4.3
|
141
|
+
signing_key:
|
142
|
+
specification_version: 4
|
143
|
+
summary: Do some stuff with text
|
144
|
+
test_files:
|
145
|
+
- spec/spec_helper.rb
|
146
|
+
- spec/wordbot/scrambler_spec.rb
|
147
|
+
- spec/wordbot/splitter_spec.rb
|