rtt 0.0.0.48 → 0.0.0.49

Sign up to get free protection for your applications and to get access to all the features.
data/Manifest CHANGED
@@ -7,6 +7,7 @@ Rakefile
7
7
  USAGE.txt
8
8
  bin/rtt
9
9
  db/config.yml
10
+ db/production.sqlite3
10
11
  db/schema.rb
11
12
  db/test.sqlite3
12
13
  lib/extensions/array.rb
data/Rakefile CHANGED
@@ -3,7 +3,7 @@ require 'echoe'
3
3
 
4
4
  # PACKAGING ============================================================
5
5
 
6
- Echoe.new('rtt', '0.0.0.48') do |p|
6
+ Echoe.new('rtt', '0.0.0.49') do |p|
7
7
  p.description = 'RTT is a tool for tracking time'
8
8
  p.url = 'http://github.com/marklazz/rtt'
9
9
  p.author = 'Marcelo Giorgi'
data/lib/rtt.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'thread'
3
- require File.expand_path 'lib/rtt/boot'
3
+ require File.expand_path(File.join( File.dirname(__FILE__), 'lib/rtt/boot'))
4
4
  %w( active_support active_record highline/import).each { |lib| require lib }
5
5
  Dir[File.expand_path(File.join(File.dirname(__FILE__), 'extensions', '*'))].each { |lib| require lib; }
6
6
  Dir[File.expand_path(File.join(File.dirname(__FILE__), 'models', '*'))].each { |lib| require lib; }
@@ -8,7 +8,7 @@ Dir[File.expand_path(File.join(File.dirname(__FILE__), 'rtt', '*'))].each { |lib
8
8
 
9
9
  module Rtt
10
10
 
11
- VERSION = '0.0.0.48'
11
+ VERSION = '0.0.0.49'
12
12
 
13
13
  extend self
14
14
 
data/lib/rtt/storage.rb CHANGED
@@ -6,7 +6,7 @@ module Rtt
6
6
  module Storage
7
7
 
8
8
  def database_file
9
- File.expand_path(File.join(File.dirname(__FILE__), '..', '..') + config[:production][:database])
9
+ File.expand_path(File.join(File.dirname(__FILE__), '..', '..', config['database']))
10
10
  end
11
11
 
12
12
  def export filename
@@ -19,7 +19,7 @@ module Rtt
19
19
  FileUtils.cp(filename, database_file)
20
20
  end
21
21
 
22
- def config(env)
22
+ def config(env = :production)
23
23
  @config ||= YAML::load_file(File.join(File.dirname(__FILE__), '..', '..', 'db', 'config.yml'))[env.to_s]
24
24
  end
25
25
 
data/rtt.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "rtt"
5
- s.version = "0.0.0.48"
5
+ s.version = "0.0.0.49"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Marcelo Giorgi"]
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
11
11
  s.email = "marklazz.uy@gmail.com"
12
12
  s.executables = ["rtt"]
13
13
  s.extra_rdoc_files = ["LICENSE", "README.rdoc", "bin/rtt", "lib/extensions/array.rb", "lib/extensions/date.rb", "lib/extensions/hash.rb", "lib/extensions/kernel.rb", "lib/models/client.rb", "lib/models/project.rb", "lib/models/task.rb", "lib/models/user.rb", "lib/rtt.rb", "lib/rtt/boot.rb", "lib/rtt/cmd_line_parser.rb", "lib/rtt/interactive_configurator.rb", "lib/rtt/query_builder.rb", "lib/rtt/report_generator.rb", "lib/rtt/storage.rb", "tasks/rtt.rake"]
14
- s.files = ["Gemfile", "Gemfile.lock", "LICENSE", "README.rdoc", "Rakefile", "USAGE.txt", "bin/rtt", "db/config.yml", "db/schema.rb", "db/test.sqlite3", "lib/extensions/array.rb", "lib/extensions/date.rb", "lib/extensions/hash.rb", "lib/extensions/kernel.rb", "lib/models/client.rb", "lib/models/project.rb", "lib/models/task.rb", "lib/models/user.rb", "lib/rtt.rb", "lib/rtt/boot.rb", "lib/rtt/cmd_line_parser.rb", "lib/rtt/interactive_configurator.rb", "lib/rtt/query_builder.rb", "lib/rtt/report_generator.rb", "lib/rtt/storage.rb", "spec/ar_spec_helper.rb", "spec/lib/models/task_spec.rb", "spec/lib/rtt_spec.rb", "tasks/rtt.rake", "Manifest", "rtt.gemspec"]
14
+ s.files = ["Gemfile", "Gemfile.lock", "LICENSE", "Manifest", "README.rdoc", "Rakefile", "USAGE.txt", "bin/rtt", "db/config.yml", "db/schema.rb", "db/test.sqlite3", "lib/extensions/array.rb", "lib/extensions/date.rb", "lib/extensions/hash.rb", "lib/extensions/kernel.rb", "lib/models/client.rb", "lib/models/project.rb", "lib/models/task.rb", "lib/models/user.rb", "lib/rtt.rb", "lib/rtt/boot.rb", "lib/rtt/cmd_line_parser.rb", "lib/rtt/interactive_configurator.rb", "lib/rtt/query_builder.rb", "lib/rtt/report_generator.rb", "lib/rtt/storage.rb", "spec/ar_spec_helper.rb", "spec/lib/models/task_spec.rb", "spec/lib/rtt_spec.rb", "tasks/rtt.rake", "rtt.gemspec"]
15
15
  s.homepage = "http://github.com/marklazz/rtt"
16
16
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Rtt", "--main", "README.rdoc"]
17
17
  s.require_paths = ["lib"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rtt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0.48
4
+ version: 0.0.0.49
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -360,6 +360,7 @@ files:
360
360
  - Gemfile
361
361
  - Gemfile.lock
362
362
  - LICENSE
363
+ - Manifest
363
364
  - README.rdoc
364
365
  - Rakefile
365
366
  - USAGE.txt
@@ -386,7 +387,6 @@ files:
386
387
  - spec/lib/models/task_spec.rb
387
388
  - spec/lib/rtt_spec.rb
388
389
  - tasks/rtt.rake
389
- - Manifest
390
390
  - rtt.gemspec
391
391
  homepage: http://github.com/marklazz/rtt
392
392
  licenses: []