amiba 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/bin/amiba CHANGED
@@ -2,14 +2,7 @@
2
2
  # -*- mode: ruby -*-
3
3
  require 'rubygems'
4
4
 
5
- if !File.exist?('Gemfile')
6
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", __FILE__)
7
- end
8
-
9
- ENV["AMIBA_BIN"] = "true"
10
-
11
- require 'bundler/setup'
12
- Bundler.require(:default, :production)
5
+ require 'amiba'
13
6
 
14
7
  $thor_runner = true
15
8
  Thor::Runner.start
data/bin/amiba-wp-import CHANGED
@@ -2,23 +2,16 @@
2
2
  # -*- mode: ruby -*-
3
3
  require 'rubygems'
4
4
 
5
- if !File.exist?('Gemfile')
6
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", __FILE__)
7
- end
8
-
9
- ENV["AMIBA_BIN"] = "true"
10
-
11
5
  IMAGE_ROOT="http://wp-uploads.s3.amazonaws.com/wp-content/uploads/"
12
6
 
13
- require 'bundler/setup'
14
- Bundler.require(:default, :production, :wp)
15
-
7
+ require 'sequel'
16
8
  require 'optparse'
17
- require 'amiba/reverse_markdown'
18
-
19
9
  require 'cgi'
20
10
  require 'uri'
21
11
 
12
+ require 'amiba/all'
13
+ require 'amiba/reverse_markdown'
14
+
22
15
  include Amiba::Repo
23
16
 
24
17
  options = {}
data/lib/amiba/all.rb CHANGED
@@ -1,14 +1,18 @@
1
+ require 'tilt'
2
+ require 'haml'
3
+ require 'active_support/all'
4
+ require 'active_model'
5
+ require 'i18n'
6
+ require 'rdiscount'
7
+
1
8
  require 'amiba/core_ext/file'
2
9
  require 'amiba/core_ext/symbol'
3
- require 'amiba/configuration'
10
+
4
11
  require 'amiba/repo'
12
+ require 'amiba/configuration'
13
+
5
14
  require 'amiba/source'
6
15
  require 'amiba/source/entry_finder'
7
16
  require 'amiba/source/entry'
8
17
  require 'amiba/source/feed'
9
18
  require 'amiba/source/partial'
10
- require 'amiba/page'
11
- require 'amiba/entry'
12
- require 'amiba/site'
13
- require 'amiba/scope'
14
- require 'webrick'
data/lib/amiba/page.rb CHANGED
@@ -1,4 +1,3 @@
1
- require 'amiba/source'
2
1
  require 'etc'
3
2
 
4
3
  module Amiba
data/lib/amiba/repo.rb CHANGED
@@ -1,3 +1,5 @@
1
+ require 'grit'
2
+
1
3
  module Amiba
2
4
  module Repo
3
5
 
data/lib/amiba/site.rb CHANGED
@@ -1,3 +1,6 @@
1
+ require 'fog'
2
+ require 'webrick'
3
+
1
4
  module Amiba
2
5
  module Site
3
6
 
@@ -1,3 +1,5 @@
1
+ require 'amiba/source'
2
+
1
3
  module Amiba
2
4
  module Source
3
5
  class Entry
@@ -1,3 +1,5 @@
1
+ require 'amiba/repo'
2
+
1
3
  module Amiba
2
4
  module Source
3
5
  module EntryFinder
@@ -1,3 +1,4 @@
1
+ require 'amiba/source'
1
2
 
2
3
  module Amiba
3
4
  module Source
@@ -1,3 +1,5 @@
1
+ require 'amiba/source'
2
+
1
3
  module Amiba
2
4
  module Source
3
5
  class Partial
data/lib/amiba.rb CHANGED
@@ -1,3 +1,7 @@
1
+ require 'thor'
2
+ require 'thor/group'
3
+ require 'thor/runner'
4
+
1
5
  module Amiba
2
6
 
3
7
  class Util
@@ -91,4 +95,11 @@ module Amiba
91
95
  end
92
96
  end
93
97
 
94
-
98
+ if Amiba::Util.in_amiba_application?
99
+ require 'amiba/all'
100
+ require 'amiba/scope'
101
+ require 'amiba/page'
102
+ require 'amiba/entry'
103
+ require 'amiba/site'
104
+ end
105
+ #
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amiba
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Steven Mohapi-Banks
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-18 00:00:00 +00:00
18
+ date: 2011-03-19 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -258,7 +258,6 @@ files:
258
258
  - templates/entries/.empty_directory
259
259
  - templates/pages/.empty_directory
260
260
  - Thorfile
261
- - Gemfile
262
261
  - templates/.amiba
263
262
  has_rdoc: true
264
263
  homepage: http://www.digital-science.com
data/Gemfile DELETED
@@ -1,28 +0,0 @@
1
- source "http://rubygems.org"
2
-
3
- gem "thor", "~>0.14.6", :require => %w{thor thor/group thor/runner}
4
- gem "tilt", "~>1.2.1"
5
- gem "haml", "~>3.0.25"
6
- gem "activesupport", "~>3.0.4", :require => 'active_support/all'
7
- gem "activemodel", "~>3.0.3", :require => 'active_model'
8
- gem "i18n", "~> 0.5.0"
9
- gem "rdiscount", "~> 1.6.8"
10
- gem "grit", "~> 2.4.1"
11
- gem "yajl-ruby", :require => "yajl/json_gem"
12
- gem "fog", ">= 0.6.0"
13
-
14
- group :development do
15
- gem "rspec"
16
- gem "rspec_tag_matchers"
17
- gem "autotest"
18
- gem "factory_girl", ">=2.0.0.beta1"
19
- gem "ruby-debug19", :require => "ruby-debug"
20
- end
21
-
22
- group :wp do
23
- gem "sequel"
24
- end
25
-
26
- if ENV['AMIBA_BIN'] == 'true'
27
- gem 'amiba', :require => %w{amiba amiba/all}
28
- end