dummy_text_jp 0.0.1

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.
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in dummy_text_jp.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Junichi Ito
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,33 @@
1
+ # DummyTextJp
2
+
3
+ Dummy text in Japanese like Lorem Ipsum.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'dummy_text_jp'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install dummy_text_jp
18
+
19
+ ## Usage
20
+
21
+ ````ruby
22
+ DummyTextJp.text # => Returns long Japanese text.
23
+
24
+ DummyTextJp.text(10) # => Returns Japanese text in specified length.
25
+ ````
26
+
27
+ ## Contributing
28
+
29
+ 1. Fork it
30
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
31
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
32
+ 4. Push to the branch (`git push origin my-new-feature`)
33
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,19 @@
1
+ # -*- encoding: utf-8 -*-
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'dummy_text_jp/version'
5
+
6
+ Gem::Specification.new do |gem|
7
+ gem.name = "dummy_text_jp"
8
+ gem.version = DummyTextJp::VERSION
9
+ gem.authors = ["Junichi Ito"]
10
+ gem.email = ["me@jnito.com"]
11
+ gem.description = %q{Japanese dummy text like Lorem Ipsum.}
12
+ gem.summary = %q{Dummy text in Japanese.}
13
+ gem.homepage = "https://github.com/JunichiIto/dummy_text_jp"
14
+
15
+ gem.files = `git ls-files`.split($/)
16
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
+ gem.require_paths = ["lib"]
19
+ end
@@ -0,0 +1,18 @@
1
+ # coding: utf-8
2
+ require "dummy_text_jp/version"
3
+
4
+ module DummyTextJp
5
+ TEXT = <<"EOS"
6
+ それも同年もっとその教育家というのの後がつけよただ。はなはだ今日で用意屋もおもにその話でんかもに防ぐて来なをも随行耽りないうて、さっそくには云っまいたたなら。自分が聴いだのは近頃途中でおもにないうでし。
7
+
8
+ 同時に岡田さんを安心豪商ある程度焦燥のいうた文学その自分私か研究をというご抑圧なずうですて、その半分はあなたか代り時代を怒って、大森さんの事に個人のそれで万小卒業となりて私国に同交渉がしよようにいやいやお演説に思いないうて、大分幾分お話を解るありやいるです事に黙っないです。
9
+
10
+ だからそれでお知人が合っ事は元々自由としますし、この味がは渡っんけれどもという秋刀魚に考えてみたな。そのうち個性の所その弟も私上にあるないかと三宅さんに申しないない、主義の今たといったお諷刺たたうて、他のうちをあとで時間だけの学校が今云わがならながら、しっかりの今度になってこの時でもっとも向いなかっなくと上るた事だで、深いませましがあまりご本場見るましものましなけれござい。すなわち言葉か不明か反抗にしですて、事実末見識にきまってならなかっためにご談判の十月で知れうです。ほかでも単にして根ざしましないですますて、何しろはなはだなっば話もこうないます事ある。ただご評でいうてはならんのうて、社会がは、何しろおれかして去っせましあり云いられんなと誘き寄せるて、神経は至るば来あります。
11
+
12
+ 何だかひょろひょろは別に否によっているなば、私にも当時いっぱいなどあなたのお創設も若い得下さろるた。私もすでに安住ののにご附着は使えるからならだなでんつつ、二三の自己からそうならませという理解なて、しかもこの手の主義にいるれるて、それかの私の科学が所有にするがいるですものんだろと妨害しば欠乏挙げ来たでしょ。自己をところが岡田さんからしかしそうあるですのうでた。
13
+ EOS
14
+
15
+ def self.text(length = nil)
16
+ length ? TEXT[Range.new(0, length - 1)] : TEXT
17
+ end
18
+ end
@@ -0,0 +1,3 @@
1
+ module DummyTextJp
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,12 @@
1
+ # require File.expand_path(File.join('../', 'spec_helper'), File.dirname(__FILE__))
2
+ require File.expand_path('spec_helper', File.dirname(__FILE__))
3
+
4
+ describe DummyTextJp do
5
+ describe "#text" do
6
+ specify { DummyTextJp.text.length.should > 0 }
7
+
8
+ context 'when with argument' do
9
+ specify { DummyTextJp.text(10).length.should == 10 }
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,2 @@
1
+ require 'rubygems'
2
+ require 'dummy_text_jp'
metadata ADDED
@@ -0,0 +1,58 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: dummy_text_jp
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Junichi Ito
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-03-09 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: Japanese dummy text like Lorem Ipsum.
15
+ email:
16
+ - me@jnito.com
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - .gitignore
22
+ - Gemfile
23
+ - LICENSE.txt
24
+ - README.md
25
+ - Rakefile
26
+ - dummy_text_jp.gemspec
27
+ - lib/dummy_text_jp.rb
28
+ - lib/dummy_text_jp/version.rb
29
+ - spec/dummy_text_jp_spec.rb
30
+ - spec/spec_helper.rb
31
+ homepage: https://github.com/JunichiIto/dummy_text_jp
32
+ licenses: []
33
+ post_install_message:
34
+ rdoc_options: []
35
+ require_paths:
36
+ - lib
37
+ required_ruby_version: !ruby/object:Gem::Requirement
38
+ none: false
39
+ requirements:
40
+ - - ! '>='
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ required_rubygems_version: !ruby/object:Gem::Requirement
44
+ none: false
45
+ requirements:
46
+ - - ! '>='
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ requirements: []
50
+ rubyforge_project:
51
+ rubygems_version: 1.8.23
52
+ signing_key:
53
+ specification_version: 3
54
+ summary: Dummy text in Japanese.
55
+ test_files:
56
+ - spec/dummy_text_jp_spec.rb
57
+ - spec/spec_helper.rb
58
+ has_rdoc: