ric 0.11.3 → 0.11.4

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/HISTORY.yml CHANGED
@@ -1,4 +1,6 @@
1
1
  # would like to have this in YML format :)
2
+ 2011-01-24 v0.11.4:
3
+ - Added some tests but they dont work :P
2
4
  2011-01-24 v0.11.3:
3
5
  - Added debug() alias
4
6
  2011-01-24 v0.11.2:
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010 Riccardo Carlesso
1
+ Copyright (c) 2010-11 Riccardo Carlesso
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/Manifest CHANGED
@@ -21,4 +21,6 @@ lib/tmp/uniquify.rb
21
21
  rails/init.rb
22
22
  sbin/reboot.rb
23
23
  sbin/ric_reboot.rb
24
+ test/strings_helper.rb
25
+ test/test_helper.rb
24
26
  var/www/index.html
data/README.md CHANGED
@@ -33,5 +33,5 @@ To use Ric in a Rails 3 application:
33
33
 
34
34
  ## Copyright & License
35
35
 
36
- Ric is Copyright (c) 2010-11 [Riccardo Carlesso](http://www.palladius.it/), and is released under GPLv3 license.
36
+ Ric is Copyright (c) 2011-11 [Riccardo Carlesso](http://www.palladius.it/), and is released under GPLv3 license.
37
37
 
data/Rakefile CHANGED
@@ -21,4 +21,30 @@ Echoe.new('ric', version ) do |p|
21
21
  "HISTORY"
22
22
  ]
23
23
  p.development_dependencies = [ ]
24
+ end
25
+
26
+ #### RAKE TEST
27
+ require 'rake'
28
+ require 'rake/testtask'
29
+ require 'rake/rdoctask'
30
+
31
+ desc 'Default: run unit tests.'
32
+ task :default => :test
33
+
34
+ desc 'Test the ric gem'
35
+ Rake::TestTask.new(:test) do |t|
36
+ t.libs << 'lib'
37
+ t.libs << 'test'
38
+ t.pattern = 'test/**/*_test.rb'
39
+ t.verbose = true
40
+ end
41
+
42
+ desc 'Generate documentation for the ric gem'
43
+ Rake::RDocTask.new(:rdoc) do |rdoc|
44
+ rdoc.rdoc_dir = 'rdoc'
45
+ rdoc.title = 'Ric GEM Hehehe'
46
+ rdoc.options << '--line-numbers' << '--inline-source'
47
+ rdoc.rdoc_files.include('README')
48
+ rdoc.rdoc_files.include('HISTORY.yml')
49
+ rdoc.rdoc_files.include('lib/**/*.rb')
24
50
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.11.3
1
+ 0.11.4
data/ric.gemspec CHANGED
@@ -2,24 +2,25 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{ric}
5
- s.version = "0.11.3"
5
+ s.version = "0.11.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Riccardo Carlesso"]
9
- s.date = %q{2011-01-30}
9
+ s.date = %q{2011-02-06}
10
10
  s.description = %q{My first gem with various utilities (colors and tests now).
11
11
  My name is Riccardo, hence 'ric' (ok I admit it, this was just ot prove Im able to build a sentence
12
12
  with hence!)}
13
13
  s.email = %q{['p','ll','diusbonton].join('a') @ gmail.com}
14
14
  s.executables = ["itunes", "ric", "riclib-test"]
15
15
  s.extra_rdoc_files = ["LICENSE", "README.md", "TODO", "bin/itunes", "bin/ric", "bin/riclib-test", "lib/rails/acts_as_carlesso.rb", "lib/rails/helpers/rails_helper.rb", "lib/ric.rb", "lib/ric/colors.rb", "lib/ric/debug.rb", "lib/ric/html.rb", "lib/ric/zibaldone.rb", "lib/ruby_classes/strings.rb", "lib/tmp/uniquify.rb"]
16
- s.files = ["HISTORY.yml", "LICENSE", "Manifest", "README.md", "Rakefile", "TODO", "VERSION", "bin/itunes", "bin/ric", "bin/riclib-test", "init.rb", "lib/rails/acts_as_carlesso.rb", "lib/rails/helpers/rails_helper.rb", "lib/ric.rb", "lib/ric/colors.rb", "lib/ric/debug.rb", "lib/ric/html.rb", "lib/ric/zibaldone.rb", "lib/ruby_classes/strings.rb", "lib/tmp/uniquify.rb", "rails/init.rb", "sbin/reboot.rb", "sbin/ric_reboot.rb", "var/www/index.html", "ric.gemspec"]
16
+ s.files = ["HISTORY.yml", "LICENSE", "Manifest", "README.md", "Rakefile", "TODO", "VERSION", "bin/itunes", "bin/ric", "bin/riclib-test", "init.rb", "lib/rails/acts_as_carlesso.rb", "lib/rails/helpers/rails_helper.rb", "lib/ric.rb", "lib/ric/colors.rb", "lib/ric/debug.rb", "lib/ric/html.rb", "lib/ric/zibaldone.rb", "lib/ruby_classes/strings.rb", "lib/tmp/uniquify.rb", "rails/init.rb", "sbin/reboot.rb", "sbin/ric_reboot.rb", "test/strings_helper.rb", "test/test_helper.rb", "var/www/index.html", "ric.gemspec"]
17
17
  s.homepage = %q{http://github.com/palladius/riclib}
18
18
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Ric", "--main", "README.md"]
19
19
  s.require_paths = ["lib"]
20
20
  s.rubyforge_project = %q{ric}
21
- s.rubygems_version = %q{1.4.2}
21
+ s.rubygems_version = %q{1.5.0}
22
22
  s.summary = %q{My first gem with various utilities (colors and tests now). My name is Riccardo, hence 'ric' (ok I admit it, this was just ot prove Im able to build a sentence with hence!)}
23
+ s.test_files = ["test/test_helper.rb"]
23
24
 
24
25
  if s.respond_to? :specification_version then
25
26
  s.specification_version = 3
@@ -0,0 +1,17 @@
1
+ require File.dirname(__FILE__) + '/test_helper'
2
+
3
+ class StringsTest < Test::Unit::TestCase
4
+
5
+ def test_to_squawk_prepends_the_word_squawk
6
+ assert_equal "squawk! Hello World", "Hello World".to_squawk
7
+ end
8
+ def test_qwe_is_created_for_string
9
+ assert_equal "worthless method called 'qwe' for 'Hello World'", "Hello World".qwe
10
+ end
11
+
12
+ def tets_fails
13
+ assert_equal 42,24
14
+ end
15
+
16
+ end
17
+
@@ -0,0 +1,42 @@
1
+ require 'rubygems'
2
+ require 'ric'
3
+ require 'test/unit'
4
+ require 'active_support'
5
+
6
+ ENV['RAILS_ENV'] = 'test'
7
+ #ENV['RAILS_ROOT'] ||= File.dirname(__FILE__) + '/../../../..'
8
+ ENV['RAILS_ROOT'] ||= File.dirname(__FILE__) + '/..'
9
+
10
+ ppurple "TEST_HELPER for RIC gem"
11
+
12
+ require 'test/unit'
13
+ #require File.expand_path(File.join(ENV['RAILS_ROOT'], 'config/environment.rb'))
14
+
15
+ #def load_schema
16
+ # config = YAML::load(IO.read(File.dirname(__FILE__) + '/database.yml'))
17
+ # ActiveRecord::Base.logger = Logger.new(File.dirname(__FILE__) + "/debug.log")
18
+ #
19
+ # db_adapter = ENV['DB']
20
+ #
21
+ # # no db passed, try one of these fine config-free DBs before bombing.
22
+ # db_adapter ||=
23
+ # begin
24
+ # require 'rubygems'
25
+ # require 'sqlite'
26
+ # 'sqlite'
27
+ # rescue MissingSourceFile
28
+ # begin
29
+ # require 'sqlite3'
30
+ # 'sqlite3'
31
+ # rescue MissingSourceFile
32
+ # end
33
+ # end
34
+ #
35
+ # if db_adapter.nil?
36
+ # raise "No DB Adapter selected. Pass the DB= option to pick one, or install Sqlite or Sqlite3."
37
+ # end
38
+ #
39
+ # ActiveRecord::Base.establish_connection(config[db_adapter])
40
+ # load(File.dirname(__FILE__) + "/schema.rb")
41
+ # #require File.dirname(__FILE__) + '/../rails/init' rescue nil # if its not ther, no probs (its obsolete!) :)
42
+ #end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ric
3
3
  version: !ruby/object:Gem::Version
4
- hash: 53
4
+ hash: 59
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 11
9
- - 3
10
- version: 0.11.3
9
+ - 4
10
+ version: 0.11.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Riccardo Carlesso
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-30 00:00:00 +00:00
18
+ date: 2011-02-06 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -70,6 +70,8 @@ files:
70
70
  - rails/init.rb
71
71
  - sbin/reboot.rb
72
72
  - sbin/ric_reboot.rb
73
+ - test/strings_helper.rb
74
+ - test/test_helper.rb
73
75
  - var/www/index.html
74
76
  - ric.gemspec
75
77
  has_rdoc: true
@@ -108,9 +110,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
110
  requirements: []
109
111
 
110
112
  rubyforge_project: ric
111
- rubygems_version: 1.4.2
113
+ rubygems_version: 1.5.0
112
114
  signing_key:
113
115
  specification_version: 3
114
116
  summary: My first gem with various utilities (colors and tests now). My name is Riccardo, hence 'ric' (ok I admit it, this was just ot prove Im able to build a sentence with hence!)
115
- test_files: []
116
-
117
+ test_files:
118
+ - test/test_helper.rb