lipsum-api 0.2 → 0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,24 +1,33 @@
1
- require 'test/unit'
2
- require 'lipsum'
3
-
4
- module LipsumAPI
5
- def send_request(opts)
6
- open("fixtures/lipsum_#{opts[:what]}.html")
7
- end
8
- end
9
-
10
- class LipsumTest < Test::Unit::TestCase
11
- def test_lipsums
12
- words = 10.lipsum_words
13
- assert_equal words.split.size, 10
14
-
15
- paragraphs = 5.lipsum_paragraphs
16
- assert_equal paragraphs.size, 5
17
-
18
- lists = 5.lipsum_lists
19
- assert_equal lists.size, 5
20
-
21
- bytes = 3736.lipsum_bytes
22
- assert_equal bytes.size, 5
23
- end
24
- end
1
+ require 'test/unit'
2
+ require 'lipsum'
3
+
4
+ module LipsumAPI
5
+ def send_request(opts)
6
+ open("fixtures/lipsum_#{opts[:what]}.html")
7
+ end
8
+ end
9
+
10
+ class LipsumTest < Test::Unit::TestCase
11
+ def test_lipsums
12
+ words = 10.lipsum_words
13
+ assert_equal words.split.size, 10
14
+
15
+ paragraphs = 5.lipsum_paragraphs
16
+ assert_equal paragraphs.size, 5
17
+
18
+ lists = 5.lipsum_lists
19
+ assert_equal lists.size, 5
20
+
21
+ bytes = 3736.lipsum_bytes
22
+ assert_equal bytes.size, 5
23
+ end
24
+
25
+ def test_not_lipsums
26
+ begin
27
+ 10.lipsum_shits
28
+ rescue
29
+ assert true
30
+ end
31
+ end
32
+
33
+ end
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lipsum-api
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 2
9
- version: "0.2"
8
+ - 3
9
+ version: "0.3"
10
10
  platform: ruby
11
11
  authors:
12
12
  - "Vicente Reig Rinc\xC3\xB3n de Arellano"
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-10-12 00:00:00 +02:00
17
+ date: 2010-10-18 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -45,6 +45,34 @@ dependencies:
45
45
  version: "0"
46
46
  type: :runtime
47
47
  version_requirements: *id002
48
+ - !ruby/object:Gem::Dependency
49
+ name: rake
50
+ prerelease: false
51
+ requirement: &id003 !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ hash: 3
57
+ segments:
58
+ - 0
59
+ version: "0"
60
+ type: :development
61
+ version_requirements: *id003
62
+ - !ruby/object:Gem::Dependency
63
+ name: bundler
64
+ prerelease: false
65
+ requirement: &id004 !ruby/object:Gem::Requirement
66
+ none: false
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ hash: 3
71
+ segments:
72
+ - 0
73
+ version: "0"
74
+ type: :development
75
+ version_requirements: *id004
48
76
  description:
49
77
  email: vicente.reig@gmail.com
50
78
  executables: []
@@ -62,10 +90,10 @@ files:
62
90
  - test/lipsum_test.rb
63
91
  - Gemfile
64
92
  - LICENSE
65
- - README
93
+ - README.markdown
66
94
  - Rakefile
67
95
  has_rdoc: true
68
- homepage:
96
+ homepage: http://github.com/vicentereig/lipsum-api
69
97
  licenses: []
70
98
 
71
99
  post_install_message:
data/README DELETED
@@ -1,9 +0,0 @@
1
- A Lipsum.com interface written in Ruby
2
- =====================================
3
-
4
- gem install lipsum-api
5
-
6
- require 'lipsum'
7
- # LipsumAPI#lipsum_words LipsumAPI#lipsum_paragraphs LipsumAPI#lipsum_bytes LipsumAPI#lipsum_lists
8
- puts 6.lipsum_words
9
- puts 2.lipsum_paragraphs :start_with_lorem => true