droxi 0.0.5 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +9 -1
- data/Rakefile +18 -5
- data/bin/droxi +2 -3
- data/droxi.gemspec +2 -2
- data/lib/droxi.rb +45 -33
- data/lib/droxi/commands.rb +117 -97
- data/lib/droxi/complete.rb +36 -31
- data/lib/droxi/settings.rb +51 -52
- data/lib/droxi/state.rb +72 -69
- data/lib/droxi/text.rb +27 -37
- data/spec/all.rb +10 -0
- data/spec/commands_spec.rb +285 -114
- data/spec/complete_spec.rb +93 -28
- data/spec/settings_spec.rb +37 -4
- data/spec/state_spec.rb +51 -23
- data/spec/testutils.rb +65 -0
- data/spec/text_spec.rb +5 -5
- metadata +3 -2
data/spec/text_spec.rb
CHANGED
@@ -16,11 +16,11 @@ describe Text do
|
|
16
16
|
laborum.".squeeze(' ')
|
17
17
|
@big_word = "Lopadotemachoselachogaleokranioleipsanodrimhypotrimmatosilphi\
|
18
18
|
oparaomelitokatakechymenokichlepikossyphophattoperisteralektr\
|
19
|
-
yonoptekephalliokigklopeleiolagoiosiraiobaphetraganopterygon"
|
20
|
-
gsub(' ', '')
|
19
|
+
yonoptekephalliokigklopeleiolagoiosiraiobaphetraganopterygon"
|
20
|
+
.gsub(' ', '')
|
21
21
|
end
|
22
22
|
|
23
|
-
describe
|
23
|
+
describe 'when wrapping text' do
|
24
24
|
it "won't return any line larger than the screen width if unnecessary" do
|
25
25
|
Text.wrap(@paragraph).all? do |line|
|
26
26
|
line.length <= @columns
|
@@ -32,8 +32,8 @@ describe Text do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
describe
|
36
|
-
it
|
35
|
+
describe 'when tabulating text' do
|
36
|
+
it 'must space items equally' do
|
37
37
|
lines = Text.table(@paragraph.split)
|
38
38
|
lines = lines[0, lines.length - 1]
|
39
39
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: droxi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Mulcahy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dropbox-sdk
|
@@ -55,6 +55,7 @@ files:
|
|
55
55
|
- spec/complete_spec.rb
|
56
56
|
- spec/settings_spec.rb
|
57
57
|
- spec/state_spec.rb
|
58
|
+
- spec/testutils.rb
|
58
59
|
- spec/text_spec.rb
|
59
60
|
homepage: https://github.com/jangler/droxi
|
60
61
|
licenses:
|