tiqav 0.0.5 → 0.0.6

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0bde7fde9a5ac7ef86834fdd3d8a87e8f9926a72
4
+ data.tar.gz: 3d5e255050a92193838428651ca0ba69bd7c971a
5
+ SHA512:
6
+ metadata.gz: d800d3df99df00ddb518f5d7d430c40e498383893665214b1c0f752d22c1fd50e4e77d04da3fab3555995398b67a331d6f7a75524e60bc306413cad11d168a6b
7
+ data.tar.gz: e79407c64a29c1c9164e9ae3295c766fecde71b4f95d5b2090ef5275c7813c5cb3c018deea74afb692b712d6800065a9b77d7ed6eea483dcaf3595be7e285d98
@@ -0,0 +1,20 @@
1
+ *~
2
+ *#*
3
+ .DS_Store
4
+ .ruby-version
5
+ *.gem
6
+ *.rbc
7
+ .bundle
8
+ .config
9
+ .yardoc
10
+ InstalledFiles
11
+ _yardoc
12
+ coverage
13
+ doc/
14
+ lib/bundler/man
15
+ pkg
16
+ rdoc
17
+ spec/reports
18
+ test/tmp
19
+ test/version_tmp
20
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in tiqav.gemspec
4
+ gemspec
@@ -1,3 +1,10 @@
1
+ === 0.0.6 2013-04-10
2
+
3
+ * use Bundler gem template
4
+ * minitest instead of testunit
5
+ * move AlphaNum class into Tiqav namespace
6
+ * fix samples
7
+
1
8
  === 0.0.5 2012-06-11
2
9
 
3
10
  * fix require path
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2012-2013 Sho Hashimoto
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.
@@ -0,0 +1,46 @@
1
+ tiqav
2
+ =====
3
+ ruby wrapper for [tiqav.com](http://tiqav.com)
4
+
5
+ * https://github.com/shokai/ruby-tiqav
6
+ * https://rubygems.org/gems/tiqav
7
+
8
+
9
+ Installation
10
+ ------------
11
+
12
+ % gem install tiqav
13
+
14
+
15
+ Usage
16
+ -----
17
+
18
+ ```ruby
19
+ require 'rubygems'
20
+ require 'tiqav'
21
+ images = Tiqav.search 'ちくわ'
22
+
23
+ images.each do |img|
24
+ puts "(id:#{img.id}) #{img.permalink} => #{img.url}"
25
+ img.save(img.filename)
26
+ puts "saved!! => #{img.filename}"
27
+ end
28
+ ```
29
+
30
+ ```ruby
31
+ img = Tiqav.random
32
+ puts img.url
33
+ puts img.thumbnail
34
+ puts img.glitch
35
+
36
+ puts Tiqav.feeling_lucky 'ちくわ'
37
+ ```
38
+
39
+
40
+ Contributing
41
+ ------------
42
+ 1. Fork it
43
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
44
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
45
+ 4. Push to the branch (`git push origin my-new-feature`)
46
+ 5. Create new Pull Request
data/Rakefile CHANGED
@@ -1,27 +1,8 @@
1
- require 'rubygems'
2
- gem 'hoe', '>= 2.1.0'
3
- require 'hoe'
4
- require 'fileutils'
5
- require './lib/tiqav'
6
-
7
- Hoe.plugin :newgem
8
- # Hoe.plugin :website
9
- # Hoe.plugin :cucumberfeatures
10
-
11
- # Generate all the Rake tasks
12
- # Run 'rake -T' to see list of generated tasks (from gem root directory)
13
- $hoe = Hoe.spec 'tiqav' do
14
- self.developer 'Sho Hashimoto', 'hashimoto@shokai.org'
15
- # self.post_install_message = 'PostInstall.txt' # TODO remove if post-install message not required
16
- self.rubyforge_name = self.name # TODO this is default value
17
- self.extra_deps = [['json','>= 1.5.4'],
18
- ['addressable', '>= 2.2.8']]
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
19
3
 
4
+ Rake::TestTask.new do |t|
5
+ t.pattern = "test/test_*.rb"
20
6
  end
21
7
 
22
- require 'newgem/tasks'
23
- Dir['tasks/**/*.rake'].each { |t| load t }
24
-
25
- # TODO - want other tests/tasks run by default? Add them to the list
26
- # remove_task :default
27
- # task :default => [:spec, :features]
8
+ task :default => :test
@@ -1,14 +1,12 @@
1
- $:.unshift(File.dirname(__FILE__)) unless
2
- $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3
-
4
1
  require 'net/http'
5
2
  require 'json'
6
3
  require 'addressable/uri'
4
+
5
+ require 'tiqav/version'
7
6
  require 'tiqav/error'
8
7
  require 'tiqav/image'
9
8
  require 'tiqav/search'
10
9
  require 'tiqav/alpha_num'
11
10
 
12
11
  module Tiqav
13
- VERSION = '0.0.5'
14
12
  end
@@ -1,24 +1,20 @@
1
1
 
2
- class AlphaNum
3
- def self.table
4
- @@table ||= '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'.split('')
5
- end
2
+ module Tiqav
3
+ class AlphaNum
4
+ def self.table
5
+ @@table ||= '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'.split('')
6
+ end
6
7
 
7
- def self.encode(num)
8
- num > 61 ? self.encode(num/62)+self.table[num%62] : self.table[num%62]
9
- end
8
+ def self.encode(num)
9
+ num > 61 ? self.encode(num/62)+self.table[num%62] : self.table[num%62]
10
+ end
10
11
 
11
- def self.decode(str)
12
- arr = str.split('').map{|i| self.table.index i }
13
- for i in 0...arr.size do
14
- return arr[i] if i == arr.size-1
15
- arr[i+1] += arr[i]*62
12
+ def self.decode(str)
13
+ arr = str.split('').map{|i| self.table.index i }
14
+ for i in 0...arr.size do
15
+ return arr[i] if i == arr.size-1
16
+ arr[i+1] += arr[i]*62
17
+ end
16
18
  end
17
19
  end
18
20
  end
19
-
20
-
21
- if __FILE__ == $0
22
- puts AlphaNum.decode 'Ab'
23
- puts AlphaNum.encode 365
24
- end
@@ -20,7 +20,7 @@ module Tiqav
20
20
  unless res.code.to_i == 200
21
21
  raise Error, "HTTP Status #{res.code} - #{url}"
22
22
  end
23
- open(fname,'w+') do |f|
23
+ File.open(fname,'w+') do |f|
24
24
  f.write res.body
25
25
  end
26
26
  fname
@@ -0,0 +1,3 @@
1
+ module Tiqav
2
+ VERSION = '0.0.6'
3
+ end
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # -*- coding: utf-8 -*-
3
- $:.unshift File.expand_path 'lib', File.dirname(__FILE__)+'/../'
3
+ $:.unshift File.expand_path '../lib', File.dirname(__FILE__)
4
4
  require 'rubygems'
5
5
  require 'tiqav'
6
6
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # -*- coding: utf-8 -*-
3
- $:.unshift File.expand_path 'lib', File.dirname(__FILE__)+'/../'
3
+ $:.unshift File.expand_path '../lib', File.dirname(__FILE__)
4
4
  require 'rubygems'
5
5
  require 'tiqav'
6
6
 
@@ -1,23 +1,21 @@
1
1
  require File.expand_path 'test_helper', File.dirname(__FILE__)
2
2
 
3
- class TestAlphaNum < Test::Unit::TestCase
4
- def setup
5
- end
3
+ class TestAlphaNum < MiniTest::Unit::TestCase
6
4
 
7
5
  def test_encode
8
- assert AlphaNum.encode(365) == '5T'
6
+ assert Tiqav::AlphaNum.encode(365) == '5T'
9
7
  end
10
8
 
11
9
  def test_decode
12
- assert AlphaNum.decode('Ab') == 2243
10
+ assert Tiqav::AlphaNum.decode('Ab') == 2243
13
11
  end
14
12
 
15
13
  def test_encode_decode
16
- assert AlphaNum.decode(AlphaNum.encode(1024)) == 1024
14
+ assert Tiqav::AlphaNum.decode(Tiqav::AlphaNum.encode(1024)) == 1024
17
15
  end
18
16
 
19
17
  def test_decode_encode
20
- assert AlphaNum.encode(AlphaNum.decode('AxCY53Ef')) == 'AxCY53Ef'
18
+ assert Tiqav::AlphaNum.encode(Tiqav::AlphaNum.decode('AxCY53Ef')) == 'AxCY53Ef'
21
19
  end
22
20
 
23
21
  end
@@ -1,3 +1,5 @@
1
- require 'stringio'
2
- require 'test/unit'
3
- require File.dirname(__FILE__) + '/../lib/tiqav'
1
+ require 'rubygems'
2
+ require 'minitest/autorun'
3
+
4
+ $:.unshift File.expand_path '../lib', File.dirname(__FILE__)
5
+ require 'tiqav'
@@ -2,7 +2,7 @@
2
2
  require File.expand_path 'test_helper', File.dirname(__FILE__)
3
3
  require 'tmpdir'
4
4
 
5
- class TestTiqavImage < Test::Unit::TestCase
5
+ class TestTiqavImage < MiniTest::Unit::TestCase
6
6
 
7
7
  def setup
8
8
  @img = Tiqav::Image.new '3om'
@@ -2,10 +2,12 @@
2
2
  require File.expand_path 'test_helper', File.dirname(__FILE__)
3
3
  require 'tmpdir'
4
4
 
5
- class TestTiqavSearch < Test::Unit::TestCase
5
+ class TestTiqavSearch < MiniTest::Unit::TestCase
6
6
 
7
7
  def test_search
8
- assert Tiqav.search('ちくわ').size > 0
8
+ imgs = Tiqav.search('ちくわ')
9
+ assert imgs.size > 0
10
+ assert imgs.select{|img| img.class != Tiqav::Image }.size == 0
9
11
  end
10
12
 
11
13
  def test_random
@@ -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 'tiqav/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "tiqav"
8
+ spec.version = Tiqav::VERSION
9
+ spec.authors = ["Sho Hashimoto"]
10
+ spec.email = ["hashimoto@shokai.org"]
11
+ spec.description = %q{ruby wrapper for tiqav.com}
12
+ spec.summary = spec.description
13
+ spec.homepage = "https://github.com/shokai/ruby-tiqav"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/).reject{|i| i=="Gemfile.lock" }
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_dependency "json"
22
+ spec.add_dependency "addressable"
23
+
24
+ spec.add_development_dependency "bundler", "~> 1.3"
25
+ spec.add_development_dependency "rake"
26
+ spec.add_development_dependency "minitest"
27
+ end
metadata CHANGED
@@ -1,166 +1,136 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: tiqav
3
- version: !ruby/object:Gem::Version
4
- hash: 21
5
- prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 5
10
- version: 0.0.5
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.6
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Sho Hashimoto
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2012-06-11 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
11
+ date: 2013-04-10 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
21
14
  name: json
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 11
29
- segments:
30
- - 1
31
- - 5
32
- - 4
33
- version: 1.5.4
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
34
20
  type: :runtime
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: addressable
38
21
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
40
- none: false
41
- requirements:
42
- - - ">="
43
- - !ruby/object:Gem::Version
44
- hash: 23
45
- segments:
46
- - 2
47
- - 2
48
- - 8
49
- version: 2.2.8
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: addressable
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
50
34
  type: :runtime
51
- version_requirements: *id002
52
- - !ruby/object:Gem::Dependency
53
- name: rdoc
54
35
  prerelease: false
55
- requirement: &id003 !ruby/object:Gem::Requirement
56
- none: false
57
- requirements:
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
58
45
  - - ~>
59
- - !ruby/object:Gem::Version
60
- hash: 19
61
- segments:
62
- - 3
63
- - 10
64
- version: "3.10"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.3'
65
48
  type: :development
66
- version_requirements: *id003
67
- - !ruby/object:Gem::Dependency
68
- name: newgem
69
49
  prerelease: false
70
- requirement: &id004 !ruby/object:Gem::Requirement
71
- none: false
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- hash: 5
76
- segments:
77
- - 1
78
- - 5
79
- - 3
80
- version: 1.5.3
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '1.3'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
81
62
  type: :development
82
- version_requirements: *id004
83
- - !ruby/object:Gem::Dependency
84
- name: hoe
85
63
  prerelease: false
86
- requirement: &id005 !ruby/object:Gem::Requirement
87
- none: false
88
- requirements:
89
- - - ~>
90
- - !ruby/object:Gem::Version
91
- hash: 29
92
- segments:
93
- - 2
94
- - 15
95
- version: "2.15"
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: minitest
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
96
76
  type: :development
97
- version_requirements: *id005
98
- description: Search Images on Tiqav.com
99
- email:
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description: ruby wrapper for tiqav.com
84
+ email:
100
85
  - hashimoto@shokai.org
101
86
  executables: []
102
-
103
87
  extensions: []
104
-
105
- extra_rdoc_files:
106
- - History.txt
107
- - Manifest.txt
108
- - README.rdoc
109
- files:
88
+ extra_rdoc_files: []
89
+ files:
90
+ - .gitignore
91
+ - Gemfile
110
92
  - History.txt
111
- - Manifest.txt
112
- - README.rdoc
93
+ - LICENSE.txt
94
+ - README.md
113
95
  - Rakefile
114
96
  - lib/tiqav.rb
115
97
  - lib/tiqav/alpha_num.rb
98
+ - lib/tiqav/error.rb
116
99
  - lib/tiqav/image.rb
117
100
  - lib/tiqav/search.rb
118
- - lib/tiqav/error.rb
101
+ - lib/tiqav/version.rb
119
102
  - samples/sample.rb
120
103
  - samples/search.rb
121
- - script/console
122
- - script/destroy
123
- - script/generate
124
104
  - test/test_alpha_num.rb
125
105
  - test/test_helper.rb
126
106
  - test/test_tiqav_image.rb
127
107
  - test/test_tiqav_search.rb
128
- - .gemtest
129
- homepage: http://github.com/shokai/ruby-tiqav
130
- licenses: []
131
-
108
+ - tiqav.gemspec
109
+ homepage: https://github.com/shokai/ruby-tiqav
110
+ licenses:
111
+ - MIT
112
+ metadata: {}
132
113
  post_install_message:
133
- rdoc_options:
134
- - --main
135
- - README.rdoc
136
- require_paths:
114
+ rdoc_options: []
115
+ require_paths:
137
116
  - lib
138
- required_ruby_version: !ruby/object:Gem::Requirement
139
- none: false
140
- requirements:
141
- - - ">="
142
- - !ruby/object:Gem::Version
143
- hash: 3
144
- segments:
145
- - 0
146
- version: "0"
147
- required_rubygems_version: !ruby/object:Gem::Requirement
148
- none: false
149
- requirements:
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- hash: 3
153
- segments:
154
- - 0
155
- version: "0"
117
+ required_ruby_version: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - '>='
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
122
+ required_rubygems_version: !ruby/object:Gem::Requirement
123
+ requirements:
124
+ - - '>='
125
+ - !ruby/object:Gem::Version
126
+ version: '0'
156
127
  requirements: []
157
-
158
- rubyforge_project: tiqav
159
- rubygems_version: 1.8.17
128
+ rubyforge_project:
129
+ rubygems_version: 2.0.3
160
130
  signing_key:
161
- specification_version: 3
162
- summary: Search Images on Tiqav.com
163
- test_files:
131
+ specification_version: 4
132
+ summary: ruby wrapper for tiqav.com
133
+ test_files:
164
134
  - test/test_alpha_num.rb
165
135
  - test/test_helper.rb
166
136
  - test/test_tiqav_image.rb
data/.gemtest DELETED
File without changes
@@ -1,18 +0,0 @@
1
- History.txt
2
- Manifest.txt
3
- README.rdoc
4
- Rakefile
5
- lib/tiqav.rb
6
- lib/tiqav/alpha_num.rb
7
- lib/tiqav/image.rb
8
- lib/tiqav/search.rb
9
- lib/tiqav/error.rb
10
- samples/sample.rb
11
- samples/search.rb
12
- script/console
13
- script/destroy
14
- script/generate
15
- test/test_alpha_num.rb
16
- test/test_helper.rb
17
- test/test_tiqav_image.rb
18
- test/test_tiqav_search.rb
@@ -1,60 +0,0 @@
1
- = tiqav
2
-
3
- * http://github.com/shokai/ruby-tiqav
4
-
5
- == INSTALL:
6
-
7
- * gem install tiqav
8
-
9
- == DESCRIPTION:
10
-
11
- Search Images on Tiqav.com
12
-
13
- == SYNOPSIS:
14
-
15
- require 'rubygems'
16
- require 'tiqav'
17
- images = Tiqav.search 'ちくわ'
18
-
19
- images.each do |img|
20
- puts "(id:#{img.id}) #{img.permalink} => #{img.url}"
21
- img.save(img.filename)
22
- puts "saved!! => #{img.filename}"
23
- end
24
-
25
- img = Tiqav.random
26
- puts img.url
27
- puts img.thumbnail
28
- puts img.glitch
29
-
30
- puts Tiqav.feeling_lucky 'ちくわ'
31
-
32
-
33
- == REQUIREMENTS:
34
-
35
- * Ruby 1.8.7+ or 1.9.3+
36
-
37
- == LICENSE:
38
-
39
- (The MIT License)
40
-
41
- Copyright (c) 2012 Sho Hashimoto
42
-
43
- Permission is hereby granted, free of charge, to any person obtaining
44
- a copy of this software and associated documentation files (the
45
- 'Software'), to deal in the Software without restriction, including
46
- without limitation the rights to use, copy, modify, merge, publish,
47
- distribute, sublicense, and/or sell copies of the Software, and to
48
- permit persons to whom the Software is furnished to do so, subject to
49
- the following conditions:
50
-
51
- The above copyright notice and this permission notice shall be
52
- included in all copies or substantial portions of the Software.
53
-
54
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
55
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
56
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
57
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
58
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
59
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
60
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # File: script/console
3
- irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
4
-
5
- libs = " -r irb/completion"
6
- # Perhaps use a console_lib to store any extra methods I may want available in the cosole
7
- # libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}"
8
- libs << " -r #{File.dirname(__FILE__) + '/../lib/tiqav.rb'}"
9
- puts "Loading tiqav gem"
10
- exec "#{irb} #{libs} --simple-prompt"
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
3
-
4
- begin
5
- require 'rubigen'
6
- rescue LoadError
7
- require 'rubygems'
8
- require 'rubigen'
9
- end
10
- require 'rubigen/scripts/destroy'
11
-
12
- ARGV.shift if ['--help', '-h'].include?(ARGV[0])
13
- RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
14
- RubiGen::Scripts::Destroy.new.run(ARGV)
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
3
-
4
- begin
5
- require 'rubigen'
6
- rescue LoadError
7
- require 'rubygems'
8
- require 'rubigen'
9
- end
10
- require 'rubigen/scripts/generate'
11
-
12
- ARGV.shift if ['--help', '-h'].include?(ARGV[0])
13
- RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
14
- RubiGen::Scripts::Generate.new.run(ARGV)