idea_card 1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +31 -0
- data/Rakefile +1 -0
- data/idea_card.gemspec +23 -0
- data/lib/idea_card.rb +2 -0
- data/lib/idea_card/changes +32 -0
- data/lib/idea_card/goals +25 -0
- data/lib/idea_card/idea_card.rb +32 -0
- data/lib/idea_card/points +25 -0
- data/lib/idea_card/version.rb +3 -0
- data/samples/sample.rb +8 -0
- metadata +85 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 10daf3e45f0ee3d69524ece6b38313102eda0016
|
4
|
+
data.tar.gz: bdbb7c9ec7b849e93b6ab882715338c1bf0b9cf8
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 694c8b6879212b9a0fc9f3859c583b57f687ac7547a90a500cd61f1a165f47eb83f4cce497002ee688672b5def5b540d79311390db6f712221a4a59b618610ee
|
7
|
+
data.tar.gz: 4a045dc7eba01a590fb9d4125c8d5db23210d5595beca2beed4d3fe16568e8d9894ea126b2dbdfca9b7571bc8ff813bd7d016cbe4c9bb1d7eb078cf49967a7d7
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 SET_ME_LOCALLY
|
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,31 @@
|
|
1
|
+
# IdeaCard
|
2
|
+
|
3
|
+
This gem in inspired by ![]([アイデアカード公式サイト](http://ideacard.jp/)).
|
4
|
+
|
5
|
+
Simply generate one sentence with randomly selected components.
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
gem 'idea_card'
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install idea_card
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
IdeaCard.draw # => "自慢したくなるように、厚さを、多くする"
|
24
|
+
|
25
|
+
## Contributing
|
26
|
+
|
27
|
+
1. Fork it
|
28
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
29
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
30
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
31
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/idea_card.gemspec
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'idea_card/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "idea_card"
|
8
|
+
spec.version = IdeaCard::VERSION
|
9
|
+
spec.authors = ["xoyip"]
|
10
|
+
spec.email = ["xoyip@piyox.info"]
|
11
|
+
spec.description = ""
|
12
|
+
spec.summary = ""
|
13
|
+
spec.homepage = ""
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
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.3"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
end
|
data/lib/idea_card.rb
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
ストーリーにする
|
2
|
+
うるさくする
|
3
|
+
穴あき/メッシュにする
|
4
|
+
ばらばらにする
|
5
|
+
くっつける
|
6
|
+
とんがらせる
|
7
|
+
動くようにする
|
8
|
+
何かに似せる
|
9
|
+
とても小さくする
|
10
|
+
使い捨てにする
|
11
|
+
とても大きくする
|
12
|
+
取り替え可能にする
|
13
|
+
減らす/シンプルにする
|
14
|
+
グループに分ける
|
15
|
+
照らす/光らせる
|
16
|
+
朝専用/夜専用にする
|
17
|
+
自動にする
|
18
|
+
固定する
|
19
|
+
でこぼこ/ざらざらにする
|
20
|
+
人間的にする
|
21
|
+
逆にする
|
22
|
+
秘密にする/隠す
|
23
|
+
柔らかく/ふにゃふにゃにする
|
24
|
+
多くする
|
25
|
+
とてもきれいにする
|
26
|
+
公開する
|
27
|
+
なくす
|
28
|
+
限定する
|
29
|
+
うるさくする
|
30
|
+
透明にする
|
31
|
+
名付ける
|
32
|
+
固くする/ハードにする
|
data/lib/idea_card/goals
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
自慢したくなるように
|
2
|
+
ありがたみ/価値が伝わるように
|
3
|
+
静になるように
|
4
|
+
高級感がでるように
|
5
|
+
記憶に残る/くせになるように
|
6
|
+
高齢者が使いやすいように
|
7
|
+
コレクションできる/マニア向けになるように
|
8
|
+
同時にできるように
|
9
|
+
持ち運びやすくするために
|
10
|
+
目立たない/ばれないように
|
11
|
+
達成感が味わえるように
|
12
|
+
驚き/インパクトを与えるように
|
13
|
+
優しさが伝わるように
|
14
|
+
レンタル/体験できるように
|
15
|
+
子どもうけするように
|
16
|
+
共感できるように
|
17
|
+
長持ちするように
|
18
|
+
捨てやすく/収納しやすくなるように
|
19
|
+
健康志向になるように
|
20
|
+
お母さん/お父さんが喜ぶように
|
21
|
+
にぎやかに/笑顔になるように
|
22
|
+
有名になる/注目されるように
|
23
|
+
エコになるように
|
24
|
+
なつかしくなるように
|
25
|
+
あきないように
|
@@ -0,0 +1,32 @@
|
|
1
|
+
module IdeaCard
|
2
|
+
|
3
|
+
module ModuleMethods
|
4
|
+
functions = %w(goal point change)
|
5
|
+
current_file_path = File.dirname(__FILE__)
|
6
|
+
functions.each do |m|
|
7
|
+
eval <<-EOC
|
8
|
+
def #{m}
|
9
|
+
path = File.expand_path "./#{m}s", "#{current_file_path}"
|
10
|
+
@#{m}s ||= load(path)
|
11
|
+
@#{m}s.sample
|
12
|
+
end
|
13
|
+
EOC
|
14
|
+
end
|
15
|
+
|
16
|
+
def draw
|
17
|
+
"#{goal}、#{point}、#{change}"
|
18
|
+
end
|
19
|
+
|
20
|
+
private
|
21
|
+
|
22
|
+
def load(file)
|
23
|
+
f = open(file)
|
24
|
+
contents = f.read.split "\n"
|
25
|
+
f.close
|
26
|
+
contents
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
30
|
+
|
31
|
+
extend ModuleMethods
|
32
|
+
end
|
data/samples/sample.rb
ADDED
metadata
ADDED
@@ -0,0 +1,85 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: idea_card
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '1.0'
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- xoyip
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-01-29 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.3'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description: ''
|
42
|
+
email:
|
43
|
+
- xoyip@piyox.info
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- .gitignore
|
49
|
+
- Gemfile
|
50
|
+
- LICENSE.txt
|
51
|
+
- README.md
|
52
|
+
- Rakefile
|
53
|
+
- idea_card.gemspec
|
54
|
+
- lib/idea_card.rb
|
55
|
+
- lib/idea_card/changes
|
56
|
+
- lib/idea_card/goals
|
57
|
+
- lib/idea_card/idea_card.rb
|
58
|
+
- lib/idea_card/points
|
59
|
+
- lib/idea_card/version.rb
|
60
|
+
- samples/sample.rb
|
61
|
+
homepage: ''
|
62
|
+
licenses:
|
63
|
+
- MIT
|
64
|
+
metadata: {}
|
65
|
+
post_install_message:
|
66
|
+
rdoc_options: []
|
67
|
+
require_paths:
|
68
|
+
- lib
|
69
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - '>='
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '0'
|
74
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
|
+
requirements:
|
76
|
+
- - '>='
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '0'
|
79
|
+
requirements: []
|
80
|
+
rubyforge_project:
|
81
|
+
rubygems_version: 2.0.3
|
82
|
+
signing_key:
|
83
|
+
specification_version: 4
|
84
|
+
summary: ''
|
85
|
+
test_files: []
|