pin_up_receipts 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 322eca2af60469882fbbe12be0bfc0d9f428d99f
4
+ data.tar.gz: 5ea1f48c705c2e99f29e004bf61397d8f78caf58
5
+ SHA512:
6
+ metadata.gz: 6b3a3b1179f9d74464a5a13b72e0019e1c17c17346fb499761e9950487e25402423d506aabdf704d84b1e0ba222349135efbf4b9a022e5b361b22fcaad96119e
7
+ data.tar.gz: 95ac75331e54836119e61e9769a4a61081fc771365bb167d971a5ca2eca2f9decaa978db146406858b77a2216a65ff7ae04d05ba10a4a85b7696197a2386e6c1
data/.document ADDED
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
data/.idea/.name ADDED
@@ -0,0 +1 @@
1
+ pin_up_receipts
data/.idea/.rakeTasks ADDED
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Settings><!--This file was automatically generated by Ruby plugin.
3
+ You are allowed to:
4
+ 1. Remove rake task
5
+ 2. Add existing rake tasks
6
+ To add existing rake tasks automatically delete this file and reload the project.
7
+ --><RakeGroup description="" fullCmd="" taksId="rake" /></Settings>
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
4
+ </project>
5
+
data/.idea/misc.xml ADDED
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectRootManager" version="2" project-jdk-name="rbenv: 1.9.3-p484" project-jdk-type="RUBY_SDK" />
4
+ </project>
5
+
data/.idea/modules.xml ADDED
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/pin_up_receipts.iml" filepath="$PROJECT_DIR$/.idea/pin_up_receipts.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
9
+
@@ -0,0 +1,54 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="FacetManager">
4
+ <facet type="gem" name="Gem">
5
+ <configuration>
6
+ <option name="GEM_APP_ROOT_PATH" value="$MODULE_DIR$" />
7
+ <option name="GEM_APP_TEST_PATH" value="$MODULE_DIR$/test" />
8
+ <option name="GEM_APP_LIB_PATH" value="$MODULE_DIR$/lib" />
9
+ </configuration>
10
+ </facet>
11
+ </component>
12
+ <component name="NewModuleRootManager">
13
+ <content url="file://$MODULE_DIR$">
14
+ <sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
15
+ </content>
16
+ <orderEntry type="inheritedJdk" />
17
+ <orderEntry type="sourceFolder" forTests="false" />
18
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.3.5, rbenv: 1.9.3-p484) [gem]" level="application" />
19
+ <orderEntry type="library" scope="PROVIDED" name="capybara (v2.2.0, rbenv: 1.9.3-p484) [gem]" level="application" />
20
+ <orderEntry type="library" scope="PROVIDED" name="celluloid (v0.15.2, rbenv: 1.9.3-p484) [gem]" level="application" />
21
+ <orderEntry type="library" scope="PROVIDED" name="coderay (v1.1.0, rbenv: 1.9.3-p484) [gem]" level="application" />
22
+ <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.2.5, rbenv: 1.9.3-p484) [gem]" level="application" />
23
+ <orderEntry type="library" scope="PROVIDED" name="ffi (v1.9.3, rbenv: 1.9.3-p484) [gem]" level="application" />
24
+ <orderEntry type="library" scope="PROVIDED" name="formatador (v0.2.4, rbenv: 1.9.3-p484) [gem]" level="application" />
25
+ <orderEntry type="library" scope="PROVIDED" name="guard (v2.2.4, rbenv: 1.9.3-p484) [gem]" level="application" />
26
+ <orderEntry type="library" scope="PROVIDED" name="guard-rspec (v4.0.4, rbenv: 1.9.3-p484) [gem]" level="application" />
27
+ <orderEntry type="library" scope="PROVIDED" name="httparty (v0.12.0, rbenv: 1.9.3-p484) [gem]" level="application" />
28
+ <orderEntry type="library" scope="PROVIDED" name="json (v1.8.1, rbenv: 1.9.3-p484) [gem]" level="application" />
29
+ <orderEntry type="library" scope="PROVIDED" name="listen (v2.2.0, rbenv: 1.9.3-p484) [gem]" level="application" />
30
+ <orderEntry type="library" scope="PROVIDED" name="lumberjack (v1.0.4, rbenv: 1.9.3-p484) [gem]" level="application" />
31
+ <orderEntry type="library" scope="PROVIDED" name="method_source (v0.8.2, rbenv: 1.9.3-p484) [gem]" level="application" />
32
+ <orderEntry type="library" scope="PROVIDED" name="mime-types (v1.25, rbenv: 1.9.3-p484) [gem]" level="application" />
33
+ <orderEntry type="library" scope="PROVIDED" name="mini_portile (v0.5.2, rbenv: 1.9.3-p484) [gem]" level="application" />
34
+ <orderEntry type="library" scope="PROVIDED" name="multi_xml (v0.5.5, rbenv: 1.9.3-p484) [gem]" level="application" />
35
+ <orderEntry type="library" scope="PROVIDED" name="nokogiri (v1.6.0, rbenv: 1.9.3-p484) [gem]" level="application" />
36
+ <orderEntry type="library" scope="PROVIDED" name="pin_up (v0.7.5, rbenv: 1.9.3-p484) [gem]" level="application" />
37
+ <orderEntry type="library" scope="PROVIDED" name="pry (v0.9.12.3, rbenv: 1.9.3-p484) [gem]" level="application" />
38
+ <orderEntry type="library" scope="PROVIDED" name="rack (v1.5.2, rbenv: 1.9.3-p484) [gem]" level="application" />
39
+ <orderEntry type="library" scope="PROVIDED" name="rack-test (v0.6.2, rbenv: 1.9.3-p484) [gem]" level="application" />
40
+ <orderEntry type="library" scope="PROVIDED" name="rb-fsevent (v0.9.3, rbenv: 1.9.3-p484) [gem]" level="application" />
41
+ <orderEntry type="library" scope="PROVIDED" name="rb-inotify (v0.9.2, rbenv: 1.9.3-p484) [gem]" level="application" />
42
+ <orderEntry type="library" scope="PROVIDED" name="rdoc (v3.12.2, rbenv: 1.9.3-p484) [gem]" level="application" />
43
+ <orderEntry type="library" scope="PROVIDED" name="rspec (v2.14.1, rbenv: 1.9.3-p484) [gem]" level="application" />
44
+ <orderEntry type="library" scope="PROVIDED" name="rspec-core (v2.14.7, rbenv: 1.9.3-p484) [gem]" level="application" />
45
+ <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v2.14.4, rbenv: 1.9.3-p484) [gem]" level="application" />
46
+ <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v2.14.4, rbenv: 1.9.3-p484) [gem]" level="application" />
47
+ <orderEntry type="library" scope="PROVIDED" name="slop (v3.4.7, rbenv: 1.9.3-p484) [gem]" level="application" />
48
+ <orderEntry type="library" scope="PROVIDED" name="terminal-notifier-guard (v1.5.3, rbenv: 1.9.3-p484) [gem]" level="application" />
49
+ <orderEntry type="library" scope="PROVIDED" name="thor (v0.18.1, rbenv: 1.9.3-p484) [gem]" level="application" />
50
+ <orderEntry type="library" scope="PROVIDED" name="timers (v1.1.0, rbenv: 1.9.3-p484) [gem]" level="application" />
51
+ <orderEntry type="library" scope="PROVIDED" name="xpath (v2.0.0, rbenv: 1.9.3-p484) [gem]" level="application" />
52
+ </component>
53
+ </module>
54
+
@@ -0,0 +1,5 @@
1
+ <component name="DependencyValidationManager">
2
+ <state>
3
+ <option name="SKIP_IMPORT_STATEMENTS" value="false" />
4
+ </state>
5
+ </component>
data/.idea/vcs.xml ADDED
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
7
+
@@ -0,0 +1,188 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="0e117c25-45c0-484f-ad8f-68f9a67e4144" name="Default" comment="">
5
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/Gemfile" afterPath="$PROJECT_DIR$/Gemfile" />
6
+ </list>
7
+ <ignored path="pin_up_receipts.iws" />
8
+ <ignored path=".idea/workspace.xml" />
9
+ <option name="TRACKING_ENABLED" value="true" />
10
+ <option name="SHOW_DIALOG" value="false" />
11
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
12
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
13
+ <option name="LAST_RESOLUTION" value="IGNORE" />
14
+ </component>
15
+ <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
16
+ <component name="CreatePatchCommitExecutor">
17
+ <option name="PATCH_PATH" value="" />
18
+ </component>
19
+ <component name="DaemonCodeAnalyzer">
20
+ <disable_hints />
21
+ </component>
22
+ <component name="FavoritesManager">
23
+ <favorites_list name="pin_up_receipts" />
24
+ </component>
25
+ <component name="FileEditorManager">
26
+ <leaf>
27
+ <file leaf-file-name="Gemfile" pinned="false" current="true" current-in-tab="true">
28
+ <entry file="file://$PROJECT_DIR$/Gemfile">
29
+ <provider selected="true" editor-type-id="text-editor">
30
+ <state line="2" column="0" selection-start="30" selection-end="30" vertical-scroll-proportion="0.061601643" vertical-offset="0" max-vertical-offset="487">
31
+ <folding />
32
+ </state>
33
+ </provider>
34
+ </entry>
35
+ </file>
36
+ </leaf>
37
+ </component>
38
+ <component name="FindManager">
39
+ <FindUsagesManager>
40
+ <setting name="OPEN_NEW_TAB" value="false" />
41
+ </FindUsagesManager>
42
+ </component>
43
+ <component name="Git.Settings">
44
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
45
+ </component>
46
+ <component name="IdeDocumentHistory">
47
+ <option name="changedFiles">
48
+ <list>
49
+ <option value="$PROJECT_DIR$/Gemfile" />
50
+ </list>
51
+ </option>
52
+ </component>
53
+ <component name="ProjectFrameBounds">
54
+ <option name="y" value="22" />
55
+ <option name="width" value="1440" />
56
+ <option name="height" value="811" />
57
+ </component>
58
+ <component name="ProjectLevelVcsManager" settingsEditedManually="false">
59
+ <OptionsSetting value="true" id="Add" />
60
+ <OptionsSetting value="true" id="Remove" />
61
+ <OptionsSetting value="true" id="Checkout" />
62
+ <OptionsSetting value="true" id="Update" />
63
+ <OptionsSetting value="true" id="Status" />
64
+ <OptionsSetting value="true" id="Edit" />
65
+ <ConfirmationsSetting value="0" id="Add" />
66
+ <ConfirmationsSetting value="0" id="Remove" />
67
+ </component>
68
+ <component name="ProjectReloadState">
69
+ <option name="STATE" value="0" />
70
+ </component>
71
+ <component name="ProjectView">
72
+ <navigator currentView="ProjectPane" proportions="" version="1" splitterProportion="0.5">
73
+ <flattenPackages />
74
+ <showMembers />
75
+ <showModules />
76
+ <showLibraryContents />
77
+ <hideEmptyPackages />
78
+ <abbreviatePackageNames />
79
+ <autoscrollToSource />
80
+ <autoscrollFromSource />
81
+ <sortByType />
82
+ </navigator>
83
+ <panes>
84
+ <pane id="Scope" />
85
+ <pane id="ProjectPane">
86
+ <subPane>
87
+ <PATH>
88
+ <PATH_ELEMENT>
89
+ <option name="myItemId" value="pin_up_receipts" />
90
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
91
+ </PATH_ELEMENT>
92
+ </PATH>
93
+ <PATH>
94
+ <PATH_ELEMENT>
95
+ <option name="myItemId" value="pin_up_receipts" />
96
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
97
+ </PATH_ELEMENT>
98
+ <PATH_ELEMENT>
99
+ <option name="myItemId" value="pin_up_receipts" />
100
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
101
+ </PATH_ELEMENT>
102
+ </PATH>
103
+ <PATH>
104
+ <PATH_ELEMENT>
105
+ <option name="myItemId" value="pin_up_receipts" />
106
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
107
+ </PATH_ELEMENT>
108
+ <PATH_ELEMENT>
109
+ <option name="myItemId" value="pin_up_receipts" />
110
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
111
+ </PATH_ELEMENT>
112
+ <PATH_ELEMENT>
113
+ <option name="myItemId" value="lib" />
114
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
115
+ </PATH_ELEMENT>
116
+ </PATH>
117
+ </subPane>
118
+ </pane>
119
+ </panes>
120
+ </component>
121
+ <component name="PropertiesComponent">
122
+ <property name="last_opened_file_path" value="$PROJECT_DIR$" />
123
+ <property name="WebServerToolWindowFactoryState" value="false" />
124
+ </component>
125
+ <component name="RunManager">
126
+ <list size="0" />
127
+ </component>
128
+ <component name="ShelveChangesManager" show_recycled="false" />
129
+ <component name="TaskManager">
130
+ <task active="true" id="Default" summary="Default task">
131
+ <changelist id="0e117c25-45c0-484f-ad8f-68f9a67e4144" name="Default" comment="" />
132
+ <created>1385727624446</created>
133
+ <updated>1385727624446</updated>
134
+ </task>
135
+ <servers />
136
+ </component>
137
+ <component name="ToolWindowManager">
138
+ <frame x="0" y="22" width="1440" height="811" extended-state="6" />
139
+ <editor active="true" />
140
+ <layout>
141
+ <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3294271" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
142
+ <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
143
+ <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
144
+ <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
145
+ <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
146
+ <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
147
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
148
+ <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
149
+ <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
150
+ <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
151
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
152
+ <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
153
+ <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
154
+ <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
155
+ <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
156
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
157
+ <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
158
+ <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
159
+ <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
160
+ </layout>
161
+ </component>
162
+ <component name="Vcs.Log.UiProperties">
163
+ <option name="RECENTLY_FILTERED_USERS">
164
+ <collection />
165
+ </option>
166
+ </component>
167
+ <component name="VcsContentAnnotationSettings">
168
+ <option name="myLimit" value="2678400000" />
169
+ </component>
170
+ <component name="VcsManagerConfiguration">
171
+ <option name="myTodoPanelSettings">
172
+ <TodoPanelSettings />
173
+ </option>
174
+ </component>
175
+ <component name="XDebuggerManager">
176
+ <breakpoint-manager />
177
+ </component>
178
+ <component name="editorHistoryManager">
179
+ <entry file="file://$PROJECT_DIR$/Gemfile">
180
+ <provider selected="true" editor-type-id="text-editor">
181
+ <state line="2" column="0" selection-start="30" selection-end="30" vertical-scroll-proportion="0.061601643" vertical-offset="0" max-vertical-offset="487">
182
+ <folding />
183
+ </state>
184
+ </provider>
185
+ </entry>
186
+ </component>
187
+ </project>
188
+
data/.travis.yml ADDED
@@ -0,0 +1,8 @@
1
+ ---
2
+ env:
3
+ global:
4
+ secure: |-
5
+ Z7eqtE7oQVsmz2iw45MULCsk9Ff028nsPHJjX04GskTCeqhn2AgeFbNEjB7d
6
+ 1mlrJDZyRggBW2ENK6Kti7p196hB1WfH52SYl9dZSLABWDW9oIKo46HjymNP
7
+ J9RERcoevctKkRGUCvyx0kvX1uN4iI56OJPXFAsYA+w0zAm/1/c=
8
+ script: bundle exec rspec spec
data/Gemfile ADDED
@@ -0,0 +1,17 @@
1
+ source "http://rubygems.org"
2
+
3
+ gem "pin_up"
4
+
5
+ group :development do
6
+ gem "shoulda", ">= 0"
7
+ gem "rdoc", "~> 3.12"
8
+ gem "rspec"
9
+ gem "httparty"
10
+ gem "jeweler", "~> 1.8.4"
11
+ gem "simplecov", ">= 0"
12
+ gem "webmock"
13
+ gem "vcr"
14
+ gem "guard-rspec"
15
+ gem "terminal-notifier-guard"
16
+ gem "capybara"
17
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,149 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ activesupport (4.0.1)
5
+ i18n (~> 0.6, >= 0.6.4)
6
+ minitest (~> 4.2)
7
+ multi_json (~> 1.3)
8
+ thread_safe (~> 0.1)
9
+ tzinfo (~> 0.3.37)
10
+ addressable (2.3.5)
11
+ atomic (1.1.14)
12
+ builder (3.2.2)
13
+ capybara (2.2.0)
14
+ mime-types (>= 1.16)
15
+ nokogiri (>= 1.3.3)
16
+ rack (>= 1.0.0)
17
+ rack-test (>= 0.5.4)
18
+ xpath (~> 2.0)
19
+ celluloid (0.15.2)
20
+ timers (~> 1.1.0)
21
+ coderay (1.1.0)
22
+ crack (0.4.1)
23
+ safe_yaml (~> 0.9.0)
24
+ diff-lcs (1.2.5)
25
+ docile (1.1.1)
26
+ faraday (0.8.8)
27
+ multipart-post (~> 1.2.0)
28
+ ffi (1.9.3)
29
+ formatador (0.2.4)
30
+ git (1.2.6)
31
+ github_api (0.10.1)
32
+ addressable
33
+ faraday (~> 0.8.1)
34
+ hashie (>= 1.2)
35
+ multi_json (~> 1.4)
36
+ nokogiri (~> 1.5.2)
37
+ oauth2
38
+ guard (2.2.4)
39
+ formatador (>= 0.2.4)
40
+ listen (~> 2.1)
41
+ lumberjack (~> 1.0)
42
+ pry (>= 0.9.12)
43
+ thor (>= 0.18.1)
44
+ guard-rspec (4.0.4)
45
+ guard (>= 2.1.1)
46
+ rspec (~> 2.14)
47
+ hashie (2.0.5)
48
+ highline (1.6.20)
49
+ httparty (0.12.0)
50
+ json (~> 1.8)
51
+ multi_xml (>= 0.5.2)
52
+ httpauth (0.2.0)
53
+ i18n (0.6.5)
54
+ jeweler (1.8.8)
55
+ builder
56
+ bundler (~> 1.0)
57
+ git (>= 1.2.5)
58
+ github_api (= 0.10.1)
59
+ highline (>= 1.6.15)
60
+ nokogiri (= 1.5.10)
61
+ rake
62
+ rdoc
63
+ json (1.8.1)
64
+ jwt (0.1.8)
65
+ multi_json (>= 1.5)
66
+ listen (2.2.0)
67
+ celluloid (>= 0.15.2)
68
+ rb-fsevent (>= 0.9.3)
69
+ rb-inotify (>= 0.9)
70
+ lumberjack (1.0.4)
71
+ method_source (0.8.2)
72
+ mime-types (2.0)
73
+ minitest (4.7.5)
74
+ multi_json (1.8.2)
75
+ multi_xml (0.5.5)
76
+ multipart-post (1.2.0)
77
+ nokogiri (1.5.10)
78
+ oauth2 (0.9.2)
79
+ faraday (~> 0.8)
80
+ httpauth (~> 0.2)
81
+ jwt (~> 0.1.4)
82
+ multi_json (~> 1.0)
83
+ multi_xml (~> 0.5)
84
+ rack (~> 1.2)
85
+ pin_up (0.7.5)
86
+ httparty
87
+ pry (0.9.12.4)
88
+ coderay (~> 1.0)
89
+ method_source (~> 0.8)
90
+ slop (~> 3.4)
91
+ rack (1.5.2)
92
+ rack-test (0.6.2)
93
+ rack (>= 1.0)
94
+ rake (10.1.0)
95
+ rb-fsevent (0.9.3)
96
+ rb-inotify (0.9.2)
97
+ ffi (>= 0.5.0)
98
+ rdoc (3.12.2)
99
+ json (~> 1.4)
100
+ rspec (2.14.1)
101
+ rspec-core (~> 2.14.0)
102
+ rspec-expectations (~> 2.14.0)
103
+ rspec-mocks (~> 2.14.0)
104
+ rspec-core (2.14.7)
105
+ rspec-expectations (2.14.4)
106
+ diff-lcs (>= 1.1.3, < 2.0)
107
+ rspec-mocks (2.14.4)
108
+ safe_yaml (0.9.7)
109
+ shoulda (3.5.0)
110
+ shoulda-context (~> 1.0, >= 1.0.1)
111
+ shoulda-matchers (>= 1.4.1, < 3.0)
112
+ shoulda-context (1.1.6)
113
+ shoulda-matchers (2.4.0)
114
+ activesupport (>= 3.0.0)
115
+ simplecov (0.8.2)
116
+ docile (~> 1.1.0)
117
+ multi_json
118
+ simplecov-html (~> 0.8.0)
119
+ simplecov-html (0.8.0)
120
+ slop (3.4.7)
121
+ terminal-notifier-guard (1.5.3)
122
+ thor (0.18.1)
123
+ thread_safe (0.1.3)
124
+ atomic
125
+ timers (1.1.0)
126
+ tzinfo (0.3.38)
127
+ vcr (2.8.0)
128
+ webmock (1.16.0)
129
+ addressable (>= 2.2.7)
130
+ crack (>= 0.3.2)
131
+ xpath (2.0.0)
132
+ nokogiri (~> 1.3)
133
+
134
+ PLATFORMS
135
+ ruby
136
+
137
+ DEPENDENCIES
138
+ capybara
139
+ guard-rspec
140
+ httparty
141
+ jeweler (~> 1.8.4)
142
+ pin_up
143
+ rdoc (~> 3.12)
144
+ rspec
145
+ shoulda
146
+ simplecov
147
+ terminal-notifier-guard
148
+ vcr
149
+ webmock
data/Guardfile ADDED
@@ -0,0 +1,45 @@
1
+ # A sample Guardfile
2
+ # More info at https://github.com/guard/guard#readme
3
+ guard :rspec do
4
+ watch(%r{^spec/.+_spec\.rb$})
5
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
6
+ watch('spec/spec_helper.rb') { "spec" }
7
+
8
+ # Rails example
9
+ watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
10
+ watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
11
+ watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
12
+ watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
13
+ watch('config/routes.rb') { "spec/routing" }
14
+ watch('app/controllers/application_controller.rb') { "spec/controllers" }
15
+
16
+ # Capybara features specs
17
+ watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/features/#{m[1]}_spec.rb" }
18
+
19
+ # Turnip features and steps
20
+ watch(%r{^spec/acceptance/(.+)\.feature$})
21
+ watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' }
22
+ end
23
+
24
+
25
+ guard :rspec do
26
+ watch(%r{^spec/.+_spec\.rb$})
27
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
28
+ watch('spec/spec_helper.rb') { "spec" }
29
+
30
+ # Rails example
31
+ watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
32
+ watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
33
+ watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
34
+ watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
35
+ watch('config/routes.rb') { "spec/routing" }
36
+ watch('app/controllers/application_controller.rb') { "spec/controllers" }
37
+
38
+ # Capybara features specs
39
+ watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/features/#{m[1]}_spec.rb" }
40
+
41
+ # Turnip features and steps
42
+ watch(%r{^spec/acceptance/(.+)\.feature$})
43
+ watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' }
44
+ end
45
+
data/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2013 Daniel Nitsikopoulos
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,70 @@
1
+ = pin_up_receipts
2
+
3
+ Generate HTML receipts from your Pin charges.
4
+
5
+ [![Build Status](https://travis-ci.org/dNitza/pin_up_receipts.png)](https://travis-ci.org/dNitza/pin_up_receipts)
6
+
7
+ ## Receipts
8
+
9
+ At the moment basic receipt creation from a succesful charge is supported, however, I'd like to build out this feature and include failed transactions and refunds.
10
+
11
+ There are two ways to go about creating and viewing / sharing a receipt.
12
+
13
+ #### Rendering a receipt as HTML
14
+
15
+ ##### Basic Usage:
16
+
17
+ The following will return a HTML receipt for you to do with as you wish.
18
+
19
+ @charge = Pin::Charges.find("token")
20
+ @company_details = ["ABC Widgets","123 Fake Street Melbourne","VIC 3000","ABN: 12 345 678 910"]
21
+ @receipt = Pin::Receipt.new(@charge, @company_details)
22
+ @receipt.render()
23
+
24
+ Your "comapny_details" can be replaced with whatever information you wish to be displayed at the top right hand side (see `tmp/receipt.html`).
25
+
26
+ ##### Advanced Usage:
27
+
28
+ There are four additional options that can be passed to `Pin::Receipt.new`.
29
+
30
+ The first is the path to your logo should you wish to include it in the footer.
31
+
32
+ The second is some additional payment information you might want to add (such as tax, fee or discount information). This can be done by passing a hash in as argument 4 eg:
33
+
34
+ payment_options = {}
35
+ payment_options["fee"] = {"name" => "late fee", "amount" => "$10.00"}
36
+ payment_options["tax"] = {"name" => "GST", "amount" => "$10.00"}
37
+ payment_options["discount"] = {"name" => "Member Discount", "amount" => "$10.00"}
38
+
39
+ A path to a custom receipt template can be passed in as the 5th argument, while a path that you would like the receipt to be saved to can be passed in as the 6th argument.
40
+
41
+
42
+ ##### Saving a receipt
43
+
44
+ To save a receipt it's exactky the same as above, just call `save` instead of render. By default, a receipt will be saved into `tmp/receipt.html` unless a path is specified.
45
+
46
+ If you would like a PDF receipt, you should be able to "print as PDF" from a browser dialog.
47
+
48
+ ##### Custom receipt template
49
+
50
+ If you would like you can use a custom receipt template to suit your branding or design needs. To get an idea of which variables are available, take a look at `/views/receit.html.erb`
51
+
52
+ ## To do
53
+
54
+ * Flesh out receipts - handle failed transactions and refunds
55
+
56
+ == Contributing to pin_up_receipts
57
+
58
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
59
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
60
+ * Fork the project.
61
+ * Start a feature/bugfix branch.
62
+ * Commit and push until you are happy with your contribution.
63
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
64
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
65
+
66
+ == Copyright
67
+
68
+ Copyright (c) 2013 Daniel Nitsikopoulos. See LICENSE.txt for
69
+ further details.
70
+