cafepress_wrapper 0.0.4 → 0.0.5

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.
Files changed (3) hide show
  1. data/README.md +94 -0
  2. metadata +4 -4
  3. data/README.rdoc +0 -74
data/README.md ADDED
@@ -0,0 +1,94 @@
1
+ CafePress Wrapper
2
+ =================
3
+
4
+ Copyright 2010-2011 Benjamin Lee Smith <benjamin.lee.smith@gmail.com>
5
+
6
+ This file is part of CafePress Wrapper.
7
+ CafePress Wrapper is free software: you can redistribute it and/or modify
8
+ it under the terms of the GNU General Public License as published by
9
+ the Free Software Foundation, either version 3 of the License, or
10
+ (at your option) any later version.
11
+
12
+ CafePress Wrapper is distributed in the hope that it will be useful,
13
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ GNU General Public License for more details.
16
+
17
+ You should have received a copy of the GNU General Public License
18
+ along with CafePress Wrapper. If not, see <http://www.gnu.org/licenses/>.
19
+
20
+ INTRODUCTION
21
+ ------------
22
+
23
+ CafePress Wrapper was built to create a portal for multiple CafePress basic stores.
24
+ The intent is to create a fully fledged site where all product browsing and searching
25
+ is done on the wrapper site, while shopping cart functionality and checkout is all
26
+ done normally on cafepress.com
27
+
28
+ The use case for which this is best used, is to combine several different basic
29
+ CafePress stores. Each cafepress store containing many products, but only a single
30
+ design. For example, http://rockclimbingshirts.com/ combines the following CafePress
31
+ basic stores: http://www.cafepress.com/carabinerpirate http://www.cafepress.com/humancrashpad
32
+ http://www.cafepress.com/midnight_lightning http://www.cafepress.com/be_safe_use_pro
33
+ and http://www.cafepress.com/tightharness
34
+
35
+ CafePress Wrapper is a Rails plugin distributed as a gem. Runs great on Heroku.
36
+
37
+ EXAMPLE
38
+ -------
39
+
40
+ **1. Create new rails project**
41
+
42
+ $ rails new cpw_test
43
+
44
+ ... bunch of rails output ...
45
+
46
+ $ cd cpw_test
47
+
48
+ **2. Add the CafePress Wrapper gem by adding the following line to Gemfile**
49
+
50
+ gem 'cafepress_wrapper'
51
+
52
+ **3. Install the gem**
53
+
54
+ $ bundle install
55
+
56
+ ... bunch of output, make sure you see Installing/Using cafepress_wrapper ...
57
+ ...
58
+ Installing cafepress_wrapper (0.0.3)
59
+ ...
60
+
61
+ **4. Create database**
62
+
63
+ $ rake db:create
64
+
65
+ **5. Migrate database**
66
+
67
+ $ rake cafepress_wrapper:db:migrate
68
+
69
+ ... lots o' output ...
70
+
71
+ **6. Copy over static assets and config file**
72
+
73
+ $ rake cafepress_wrapper:install:all
74
+ ... list of files copied ...
75
+
76
+ **7. Remove default index.html**
77
+
78
+ $ rm public/index.html
79
+
80
+ **8. Start rails server**
81
+
82
+ $ rails server
83
+
84
+ **9. Open http://localhost:3000/ in your web browser**
85
+
86
+ You should see a pretty blank page with just header/footer/menu
87
+
88
+ **10. Add a basic cafepress store by store id (humancrashpad for this example)**
89
+
90
+ $ rake cafepress_wrapper:add_store[humancrashpad]
91
+
92
+ **11. Refresh http://localhost:3000/ **
93
+
94
+ And you're done. Add more stores using the cafepress_wrapper:add_store rake task
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cafepress_wrapper
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors: []
13
13
 
@@ -101,7 +101,7 @@ files:
101
101
  - MIT-LICENSE
102
102
  - Rakefile
103
103
  - Gemfile
104
- - README.rdoc
104
+ - README.md
105
105
  has_rdoc: true
106
106
  homepage:
107
107
  licenses: []
data/README.rdoc DELETED
@@ -1,74 +0,0 @@
1
- # Copyright 2010-2011 Benjamin Lee Smith <benjamin.lee.smith@gmail.com>
2
- #
3
- # This file is part of CafePress Wrapper.
4
- # CafePress Wrapper is free software: you can redistribute it and/or modify
5
- # it under the terms of the GNU General Public License as published by
6
- # the Free Software Foundation, either version 3 of the License, or
7
- # (at your option) any later version.
8
- #
9
- # CafePress Wrapper is distributed in the hope that it will be useful,
10
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- # GNU General Public License for more details.
13
- #
14
- # You should have received a copy of the GNU General Public License
15
- # along with CafePress Wrapper. If not, see <http://www.gnu.org/licenses/>.
16
-
17
- == INTRODUCTION ==
18
-
19
- WORK IN PROGRESS!
20
-
21
- CafePress Wrapper was built to create a portal for multiple CafePress basic stores.
22
- The intent is to create a fully fledged site where all product browsing and searching
23
- is done on the wrapper site, while selecting specific sizes/colors/etc, shopping
24
- cart functionality, and checkout is all done normally on cafepress.com
25
-
26
- CafePress Wrapper is a Rails plugin distributed as a gem. Currently, there is a lot
27
- of code which is specific to rockclimbingshirts.com. I am in the process of removing
28
- this code and replacing it with generic stuff.
29
-
30
- Runs great on Heroku.
31
-
32
- == TODO ==
33
-
34
- * Write setup howto
35
- * Remove rockclimbingshirts.com specific stuff and create generic pages
36
-
37
- == EXAMPLE ==
38
-
39
- * Create new rails project:
40
- > rails new cpw_test
41
- ... bunch of rails output ...
42
- > cd cpw_test
43
-
44
- * Add the CafePress Wrapper gem by adding the following line to Gemfile
45
- gem 'cafepress_wrapper'
46
-
47
- * Install the gem
48
- > bundle install
49
- ... bunch of output, make sure you see Installing/Using cafepress_wrapper ...
50
-
51
- * Create database
52
- > rake db:create
53
-
54
- * Migrate database
55
- > rake cafepress_wrapper:db:migrate
56
- ... lots o' output ...
57
-
58
- * Copy over static assets and config file
59
- > rake cafepress_wrapper:install:all
60
- ... list of files copied and where ...
61
-
62
- * Remove default index.html
63
- > rm public/index.html
64
-
65
- * Start rails server
66
- > rails server
67
-
68
- * Open http://localhost:3000/ in your web browser
69
- You should see a pretty blank page with just header/footer/menu
70
-
71
- * Add a basic cafepress store by store id (humancrashpad for this example)
72
- > rake cafepress_wrapper:add_store[humancrashpad]
73
-
74
- * Refresh http://localhost:3000/